An efficient, reliable parser for CommonMark, a standard dialect of Markdown
MIT License
Published by marcusklaas almost 5 years ago
Minor parsing fixes.
Published by marcusklaas about 5 years ago
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.Published by marcusklaas over 5 years ago
Changes:
Published by marcusklaas over 5 years ago
Changes:
Published by marcusklaas over 5 years ago
Changes:
Published by marcusklaas over 5 years ago
Additions:
Changes:
CowStr
. This is a breaking change.Published by marcusklaas over 5 years ago
Minor release with a number of small bug fixes. No breaking changes.
Published by marcusklaas over 5 years ago
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.