github erikjuhani/basalt basalt-core/v0.2.2

16 months ago

Full Changelog: basalt-core/v0.2.1...basalt-core/v0.2.2

0.2.2 (2025-02-27)

  • Fix skipping of text nodes in markdown parser by @erikjuhani in #1

Added

Add blank implementations for TextNode and Text
Add more blanket implementations to cover &str, String conversions
into TextNode and String TextNode, Vec<TextNode> and
&[TextNode] for Text.

This simplifies the conversions between types. For instance one helper
function text from the markdown test module was removed and replaced
with .into() calls.

Module: basalt-core
Scope: markdown

Fixed

Previously, quite naively every 'unhandled' tag was pushed as a new
paragraph node, however, this did not work as expected and actually
might replace the current node, even, if that wasn't the intention.

This happened for example with styled text using emphasis or bold
markers.

This is now fixed and the tags that do not have implementation are not
handled at all as separate nodes, but instead if they contain text. This
text will be pushed to the current node block instead.

New more comprehensive test was also added and replaces the simple block
quote test.

Module: basalt-core
Scope: markdown

Don't miss a new basalt release

NewReleases is sending notifications on new releases.