That makes sense. For what it's worth, my branch of ssb-markdown is CommonMark plus:
- Block: Full HTML output, accepts Markdown string and
opts
.- Any link starting with
#
hastarget="_blank"
added as a property. - Emoji
:name:
renderer, defaults to UTF-8 emoji output but can use images withopts.emoji
function. - Linkifier:
- HTTP, HTTPS, FTP, data, and dat URI schemes by default.
- Ability for plugins to add HTTP-like protocol handlers in
opts.protocols
array. - Sigil links, hashtags, and @mentions rendered with
opts.toUrl()
function.
- Media:
- Supports alt text starting with
audio:
orvideo:
to render media players. - Wraps all imags in a link to that image with
opts.toUrl()
function (hmm).
- Supports alt text starting with
- Any link starting with
- Inline: Plaintext content preview, accepts Markdown string and
opts
.- Emoji
:name:
emojifier, defaults to UTF-8 emoji output but can use images withopts.emoji
function. - Links are replaced with the plaintext text node inside the link (no
href
). - Images are replaced with their alt text.
- Code blocks are replaced with their HTML-encoded contents.
- Emoji
If you think the git object id linkifier might be a good fit for ssb-markdown I'd be happy to look into adding it to my branch.