Skip to content

Commit

Permalink
Add tags <h2>...<h6> as triggers for HTML block type 6.
Browse files Browse the repository at this point in the history
Fixes #214.
  • Loading branch information
mity committed Jan 12, 2024
1 parent 0d10b60 commit 2750d9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ Fixes:
The `md2html` utility now handles nested images with optional titles
correctly.

* [#214](https://github.com/mity/md4c/issues/214):
Tags `<h2>` ... `<h6>` incorrectly did not trigger HTML block.


## Version 0.4.8

Expand Down
3 changes: 2 additions & 1 deletion src/md4c.c
Original file line number Diff line number Diff line change
Expand Up @@ -5369,7 +5369,8 @@ static const TAG d6[] = { X("dd"), X("details"), X("dialog"), X("dir"),
X("div"), X("dl"), X("dt"), Xend };
static const TAG f6[] = { X("fieldset"), X("figcaption"), X("figure"), X("footer"),
X("form"), X("frame"), X("frameset"), Xend };
static const TAG h6[] = { X("h1"), X("head"), X("header"), X("hr"), X("html"), Xend };
static const TAG h6[] = { X("h1"), X("h2"), X("h3"), X("h4"), X("h5"), X("h6"),
X("head"), X("header"), X("hr"), X("html"), Xend };
static const TAG i6[] = { X("iframe"), Xend };
static const TAG l6[] = { X("legend"), X("li"), X("link"), Xend };
static const TAG m6[] = { X("main"), X("menu"), X("menuitem"), Xend };
Expand Down

0 comments on commit 2750d9f

Please sign in to comment.