Created
May 14, 2025 14:33
-
-
Save cfjedimaster/2cb0031a14a98e655bc4e0dffcfb7488 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bx:savecontent variable="htmlInput" { | |
``` | |
<h1 id="hello-world"><a href="#hello-world" id="hello-world" name="hello-world" class="anchor"></a>Hello World</h1> | |
<p>This is some markdown text. It is <em>kinda</em> cool. Correction, it is <strong>very</strong> cool!</p> | |
<p>Here's a list, just because:</p> | |
<ul> | |
<li>Ray</li> | |
<li>Lindy</li> | |
<li>Cats</li> | |
<li>Beer</li> | |
</ul> | |
<p>Finally, an image: <img src="https://unsplash.it/640/425?random" alt="https://unsplash.it/640/425?random" /></p> | |
``` | |
} | |
md = htmlToMarkdown(htmlInput); | |
println(md); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment