Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Markdown does not work inside HTML tags

A topic by SekoiaTree created Oct 20, 2021 Views: 201 Replies: 3
Viewing posts 1 to 3
(1 edit)

Deepdwn version: v0.28.1

OS: Pop!_OS 20.21

Any text put inside any html tag will not be parsed as markdown. Some highlighting works, but not the rest.

Text given
Preview

Apparently itch decided to not show the screenshots I put...

Hi, I can see the screenshots!

There are a couple of different issues here.

In your screenshot, I believe there’s an html tag on the line directly above the one shown, or a series of unbroken lines that continue an HTML block, and that prevents the markdown parsing you’re seeing. This is working correctly in the preview, where the markdown is not parsed for this line.

For way too much information on this, here’s the commonmark spec on raw html blocks: https://spec.commonmark.org/0.29/#html-blocks

That said, the editor side doesn’t (and really can’t) fully match the commonmark spec, and there are some gaps.

  • Newlines after opening tags don’t terminate the html block (again, in the editor), causing markdown highlighting to fail until the element is closed. This is fixed for an upcoming release
  • Some tags (in your screenshot, the mark == and inline code blocks) ignore this html block state and incorrectly “work” when they shouldn’t. I’d like to improve this, but can’t promise I’ll be able to soon.

Thanks for the report :)

(+1)

wow, okay, I see! Thanks! Perfect, I'll start using deepdwn fully for my notes, then!