We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56dfeb0 commit e2550ecCopy full SHA for e2550ec
src/html/comrak_adapters.rs
@@ -112,8 +112,6 @@ impl SyntaxHighlighterAdapter for HighlightAdapter {
112
let theme = &self.theme_set.themes["InspiredGitHub"];
113
let mut highlighter = syntect::easy::HighlightLines::new(syntax, theme);
114
115
- let code = html_escape::encode_text(code);
116
-
117
match self.highlight_html(
118
syntect::util::LinesWithEndings::from(&code),
119
|lines, line| {
@@ -143,7 +141,6 @@ impl SyntaxHighlighterAdapter for HighlightAdapter {
143
141
) -> std::io::Result<()> {
144
142
let lang = lang.unwrap_or_default();
145
let config = (self.language_cb)(lang);
146
147
let source = code.as_bytes();
148
if let Some(config) = config {
149
let mut highlighter = tree_sitter_highlight::Highlighter::new();
0 commit comments