Full Changelog: basalt-core/v0.2.0...basalt-core/v0.2.1
0.2.1 (2025-02-23)
Added
This is the initial implementation for an intermediate layer between the
basalt TUI application and pulldown-cmark. This enables segregation of
the parsing logic.Essentially I don't want to leak implementation details of
pulldown-cmark to the basalt TUI application.This initial implementation does not cover all of the possible markdown
events or tags, and these are intentionally left out for now. i.e. these
won't be in the AST node tree, thus impossible to render when using this
intermediate layer.Ordered list items do not work yet, although there exists some code for
that logic specifically.The implemented
Parserprocesses pulldown-cmarkEvents, eventually
building up the output of AST nodes.This implementation expects a stringified form of markdown input that is
given to eitherbasalt_core::markdown::from_strfunction or to the
parsefunction from thebasalt_core::markdown::Parser.The
from_stris a convenience function that runsParser::newand
Parser::parsefor the provided string.