You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... which is broken in the current HEAD of master. The later input is also not something we have in our tests.
The issue is that the nested div does not start at the beginning of a line and therefore is not parsed as a block level element. Under normal circumstances, this would be the correct behavior. However, as it is the first and immediate child of the outer <div> is should still be treated as a block level element. Interestingly, when working on #1069 it occurred to me that this could be an issue, but when the simple fix didn't break any tests, I dismissed the thought. I think we need a more sophisticated manner to determine at_line_start. Sigh.
Activity
git1sal commentedon Nov 23, 2020
Oh, I should have mentioned also that the actual content
*foo*does not get markdownized in this test case.waylan commentedon Nov 23, 2020
I'm not able to replicate that behavior in any recent version. With versions 3.3.0 through 3.3.3 I get:
However, I see that in #1069 (which is part of the unreleased version 3.3.4) we broke this and I am getting:
That does not turn things 'inside-out,' but it is clearly wrong. and it demonstrates again that our tests for md_in_html are incomplete.
By the way, there is a clear difference between the inputs:
... which works fine and ...
... which is broken in the current HEAD of master. The later input is also not something we have in our tests.
The issue is that the nested
divdoes not start at the beginning of a line and therefore is not parsed as a block level element. Under normal circumstances, this would be the correct behavior. However, as it is the first and immediate child of the outer<div>is should still be treated as a block level element. Interestingly, when working on #1069 it occurred to me that this could be an issue, but when the simple fix didn't break any tests, I dismissed the thought. I think we need a more sophisticated manner to determineat_line_start. Sigh.[-]Hierarchy of nested <div markdown=1> gets turned inside-out[/-][+]Nested one-liners broken with md_in_html[/+]git1sal commentedon Nov 24, 2020
Thank you very much—inserting newlines resolved the problem for me.
Thank you for the amazing work you are doing on this package!
Better handling of one-liner Block HTML
Adjust `md_in_html` "markdown" blocks to process content consistently (…