Skip to content

Conversation

@thecrypticace
Copy link
Contributor

Fixes #18071

@thecrypticace thecrypticace requested a review from a team as a code owner September 18, 2025 20:39
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just missing a changelog entry

@thecrypticace thecrypticace merged commit 8d56381 into main Sep 18, 2025
7 checks passed
@thecrypticace thecrypticace deleted the fix/issue-18071 branch September 18, 2025 20:53
@helpimnotdrowning
Copy link

helpimnotdrowning commented Oct 11, 2025

Hi, I am currently embedding markdown in a string and passing it to an HTML converter in a .ps1 PowerShell file (not a Markdown .md file). I noticed the markdown class detector only scans .md/.mdx files for markdown classes; is it possible to have this work across any file?

My use is something like this:

@"
blah blah blah [a link](https://google.com){.no-underline!}
"@ | ConvertFrom-Markdown | % Html

which generates the following:

<p>blah blah blah <a href="https://google.com" class="no-underline!">a link</a></p>

(but only when it is sent, it is stored as PowerShell, not Markdown)


I can workaround this by storing the class name in a variable and using it in the string:

$no_underline = 'no-underline!'
@"
blah blah blah [a link](https://google.com){.$no_underline}
"@ | ConvertFrom-Markdown | % Html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants