Skip to content
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

Support _htmlBlockType for html_inline. #97

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tmpfs
Copy link
Contributor

@tmpfs tmpfs commented Apr 23, 2016

Add support for the _htmlBlockType property on inline HTML elements;
this allows AST consumers to be able to know ahead of time the type for
inline HTML elements which is useful when parsing processing
instructions or comments.

Moved the reHtmlBlockOpen RegExp to the common module so that it may be
shared between the inline and block parsers.

Add support for the _htmlBlockType property on inline HTML elements;
this allows AST consumers to be able to know ahead of time the type for
inline HTML elements which is useful when parsing processing
instructions or comments.

Moved the reHtmlBlockOpen RegExp to the common module so that it may be
shared between the inline and block parsers.
@tmpfs
Copy link
Contributor Author

tmpfs commented Apr 23, 2016

Benchmarks were stable for me after adding this but I'm not sure which sample to use for lots of inline HTML elements.

HTML5 allows the lowercase version `<!doctype html>`.
When determining _htmlBlockType for html_inline node types.
@Marsup
Copy link

Marsup commented Apr 26, 2017

@jgm any chance for this PR to be merged ? (once fixed, obviously)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants