-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contents of inline html should be parsed? #51
Conversation
@bollwyvl It is changed to not parse anything in inline html. |
It is intended to be like this. |
FYI. I've add an option to change the behavior: Here is the test case: https://github.com/lepture/mistune/blob/master/tests/test_cases.py#L119 |
Hm, looks like turning on parse_html indeed parses the contents of the tag... but also escapes the wrapping html: |
@bollwyvl There is an
|
Thanks for the reply! There are a lot of moving parts here! I'll see if i On 21:51, Sat, Jun 20, 2015 Hsiaoming Yang notifications@github.com wrote:
|
@bollwyvl Maybe you don't need to turn off def block_html(self, html):
html = fix_for_xxs(html)
return html |
Turns out the fix of #38 didn't fix the nbviewer downstream issue (jupyter/nbviewer#458). He's using
<center>
, which is another store, but is expose with more normal tags like<a>
as in the test case.From our point of view, this is a bug as
marked
(used in the live notebook) will indeed render this as a user expects. If that's not the case here, we'll need to figure out some way to add the behavior, but that is some fearsome regexen there... though the new one is cleaner!