An efficient, reliable parser for CommonMark, a standard dialect of Markdown
Changes:
Minor parsing fixes and bug fixes. Now exposes the difference between delimited code blocks and indented code blocks.
Minor parsing fixes.
This is a backward incompatible release. However, most users will not experience any breakage. It also fixes some parser correctness bugs.
get_offset
method on the parser was removed. Its semantics were poorly defined and only provided users with the start offset of the next event. To get proper source mapping information which includes the entire source range for each event, upgrade the Parser
to an OffsetIter
using the into_offset_iter
method. This produces an iterator over (Event, Range<usize>)
tuples.Event::HtmlBlock
and Event::InlineHTML
event variants were removed. Inline HTML is now represented by regular HTML events.Event::Header(i32)
has been replaced by Event::Heading(u32)
.u64
instead of a usize
.FIRST_PASS
option has been removed.Changes:
Changes:
Changes:
Additions:
Changes:
CowStr
. This is a breaking change.Minor release with a number of small bug fixes. No breaking changes.
New extensions (strikethrough, task lists), public CowStr
and InlineStr
and some small fixes.
This is not backward compatible with v0.3.0, but the changes should be very manageable.