A markdown-it.rs plugin to process front matter containers
APACHE-2.0 License
Monorepo of plugins for markdown-it.rs:
More to come... (hopefully, many from mdit-py-plugins)
Also utility crates:
Feedback on the code is always welcome!
Use pre-commit to run checkers and formatters before committing:
git add -A
pre-commit run --all
Use cargo-release to release. (maybe move to cargo-smart-release in the future)
For translating markdown-it plugins to rust, here are some useful notes:
state.bMarks[startLine] + state.tShift[startLine]
is equivalent to state.line_offsets[line].first_nonspace
state.eMarks[startLine]
is equivalent to state.line_offsets[line].line_end
state.sCount[line]
is equivalent to state.line_offsets[line].indent_nonspace
state.sCount[line] - state.blkIndent
is equivalent to state.line_indent(state.line)