rushdown-highlighting
rushdown-highlighting is a server-side syntax highlighting plugin for rushdown, a markdown parser.
Installation
Add dependency to your Cargo.toml:
[]
= "x.y.z"
Usage
Example
use ;
use ;
let markdown_to_html = new_markdown_to_html;
let mut output = Stringnew;
let input = r#"
```rust
let a = 10;
```
"#;
match markdown_to_html
Options
| Option | Type | Default | Description |
|---|---|---|---|
theme |
&str |
InspiredGitHub |
The name of the syntax highlighting theme to use. This option is only applicable when mode is set to Attribute |
mode |
HighlightingMode |
Attribute |
The mode to use for syntax highlighting. Attribute mode adds a style attribute to the HTML elements, while Class mode adds a class attribute. |
theme_set |
Option<Rc<ThemeSet>> |
None |
A custom set of syntax highlighting themes. If this option is not provided, the default themes from the syntect crate will be used. |
Donation
BTC: 1NEDSyUmo4SMTDP83JJQSWi1MvQUGGNMZB
Github sponsors also welcome.
License
MIT
Author
Yusuke Inuzuka