feat: add flag to output css classes instead of inline styles in HTML highlighter output
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
This commit is contained in:
parent
495fe2a6c5
commit
8368f9994d
5 changed files with 86 additions and 46 deletions
|
|
@ -718,7 +718,9 @@ fn to_html<'a>(
|
|||
.map(Highlight),
|
||||
);
|
||||
renderer
|
||||
.render(events, src, &|highlight| HTML_ATTRS[highlight.0].as_bytes())
|
||||
.render(events, src, &|highlight, output| {
|
||||
output.extend(HTML_ATTRS[highlight.0].as_bytes());
|
||||
})
|
||||
.unwrap();
|
||||
Ok(renderer
|
||||
.lines()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue