Jump to content

Recommended Posts

Posted

A simple and powerfull UDF to convert markdown to HTML, using the excellent md4c library.

the code is simple and straight forward, just look at the example.

There is the simple function _md_Html, and a more advanced _md_Parse function (only for advanced uses, to convert something other than HTML).

 

au3markdown.zip

  • 3 months later...
Posted

Hi matwachich, excelent UDF very useful.

I compared some markdown demo and found differences with your UDF output, you can test it with standard demo at https://markdown-it.github.io/

Your UDF doesn't show emoticons and images are not correctly sized.

Another point is that your source output lacks crlf, for instance it shows:

<hr /><p><u><u>Advertisement :)</u></u></p><ul><li><u><u><a href="https://nodeca.github.io/pica/demo/">pica</a></u></u> - high quality and fast imageresize in browser.</li><li><u><u><a href="https://github.com/nodeca/babelfish/">babelfish</a></u></u> - developer friendlyi18n with plurals support and easy syntax.</li>
 

Instead of:

<hr>
<p><strong>Advertisement 😃</strong></p>
<ul>
<li><strong><a href="https://nodeca.github.io/pica/demo/">pica</a></strong> - high quality and fast image
resize in browser.</li>
<li><strong><a href="https://github.com/nodeca/babelfish/">babelfish</a></strong> - developer friendly
i18n with plurals support and easy syntax.</li>

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...