Skip to content

silgy_render_md

Jurek Muszyński edited this page Mar 4, 2020 · 6 revisions

char *silgy_render_md(char *dest, const char *src, size_t len)

Description

Converts zero-terminated src interpreted as markdown to HTML and writes up to len bytes of the converted text to dest. dest is always zero-terminated.

The following tags are supported:

  • paragraph (p)
  • headers 1-4 (h1...h4)
  • bold (b)
  • italic (i)
  • underline (u)
  • monospace (code)
  • ordered list (ol)
  • unordered list (ul)

The additional feature is double hyphen (--) convertion to ndash.

Returns

Returns dest.

Example

Clone this wiki locally