erusev / parsedown-extra

Markdown Extra Extension for Parsedown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken indentation with fenced code blocks and markdown="1"

cossssmin opened this issue · comments

I'm trying to show table markup with a fenced code block inside a <div markdown="1">.

As you can see in the following screenshot, the indentation is broken, but only when used inside a div with markdown="1". When used outside of markdown-enabled HTML markup, it works as expected.

image

At first, I thought it only has issues with the <tr>, as in it can't break it onto the next line. However, the entire indentation is off with table markup.

For control, I've also used divs, headings, and paragraphs inside a <div markdown="1"> - that works as expected, so it looks like this issue is isolated to table-based markup.

Can you please have a look? I've been looking at processTag($elementMarkup), but haven't managed to come up with anything :(

Thanks!

It appears this is working correctly in the current beta, so this should be fixed in the next release :)


screen shot 2018-05-17 at 13 34 28

Awesome, can't wait :)

Do you have an (even rough) estimate of when it'll be released? Been checking Parsedown daily as well, looking forward to 1.8.0 stable release too (for allowing extensions to output unfiltered HTML).

Thanks again!

Most likely 1.8 will actually end up being 2.0 due to some foreseen potential breakage to existing extensions (caused by changing the internals of Parsedown). There are a few more things I'd like to include in a new major release (in particular changing how extensions interact with Parsedown to avoid repeating this kind of breakage scenario). Unfortunately I won't really have time to work on this until next month, so it'll likely be sometime after that (but hopefully not too long after).

Thanks Aidan, I appreciate it :)