« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1507 ms

GitHub - markdown-it-rust/markdown-it-plugins.rs: A markdown-it.rs plugin to process front matter containers

Source: https://github.com/markdown-it-rust/markdown-it-plugins.rs

Repository navigation

markdown-it-plugins.rs
Public

About

A markdown-it.rs plugin to process front matter containers

Topics

markdown-it-plugin

Resources

Readme Activity Custom properties

Stars

18 stars

Watchers

2 watching

Forks

2 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


43 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github .github    
crates crates    
docs/ _static docs/ _static    
.gitattributes .gitattributes    
.gitignore .gitignore    
.pre-commit-config.yaml .pre-commit-config.yaml    
Cargo.toml Cargo.toml    
README.md README.md    

Repository files navigation

markdown-it-plugins.rs

Monorepo of plugins for markdown-it.rs :

More to come... (hopefully, many from mdit-py-plugins )

Also utility crates:

Development

Feedback on the code is always welcome!

Use pre-commit to run checkers and formatters before committing:

git add -A
pre-commit run --all

Release

Use cargo-release to release. (maybe move to cargo-smart-release in the future)

Notes

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)

About

A markdown-it.rs plugin to process front matter containers

Topics

markdown-it-plugin

Resources

Readme Activity Custom properties

Stars

18 stars

Watchers

2 watching

Forks

2 forks Report repository

Releases

Packages

Used by

Contributors

Languages