kjdev / hoextdown

Hoextdown is an extension to Hoedown
MIT License
23 stars 15 forks source link

Add an HTML5 extension to Hoedown that parses HTML5 blocks. #42

Closed NEricN closed 7 years ago

NEricN commented 7 years ago

Some of the block elements should not be wrapped inside <p> elements or treated as text - this adds an optional extension to enable Hoedown to recognize new tags. It is added as an extension because there may be code that depends on certain unknown elements being treated specially, and so this won't break any existing workflow.

All the tags were taken from https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements.

codecov-io commented 7 years ago

Codecov Report

Merging #42 into master will decrease coverage by 0.9%. The diff coverage is 25.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
- Coverage   62.54%   61.63%   -0.91%     
==========================================
  Files          14       15       +1     
  Lines        3882     3978      +96     
  Branches     1042     1048       +6     
==========================================
+ Hits         2428     2452      +24     
- Misses       1023     1092      +69     
- Partials      431      434       +3
Impacted Files Coverage Δ
bin/hoedown.c 43.26% <ø> (ø) :arrow_up:
src/html5_blocks.c 23.4% <23.4%> (ø)
src/document.c 73.19% <75%> (+0.02%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 37253f5...c663a44. Read the comment docs.

kjdev commented 7 years ago

Thanks.