Add support for highlighting python based on the nix highlighter.

This commit is contained in:
Tom Alexander
2025-02-22 17:56:56 -05:00
parent 749f6d7a55
commit 04952895cf
5 changed files with 122 additions and 18 deletions

View File

@@ -63,6 +63,13 @@ render!(RenderSrcBlock, ISrcBlock, original, render_context, {
.unwrap()
.include_css("language_nix.css")?;
}
Some("python") => {
render_context
.dependency_manager
.lock()
.unwrap()
.include_css("language_python.css")?;
}
_ => {}
};
Ok(RenderSrcBlock {