Repository navigation
0.6.0
This is a backward incompatible release. However, most users will not experience any breakage. It also fixes some parser correctness bugs.
Breaking changes:
- the
get_offsetmethod 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 theParserto anOffsetIterusing theinto_offset_itermethod. This produces an iterator over(Event, Range<usize>)tuples. - the
Event::HtmlBlockandEvent::InlineHTMLevent variants were removed. Inline HTML is now represented by regular HTML events. - horizontal rules are now events, and no longer (empty) tags.
Event::Header(i32)has been replaced byEvent::Heading(u32).- the starting index of numbered lists is now represented by a
u64instead of ausize. - the
FIRST_PASSoption has been removed.