diff --git a/org/html_writer.go b/org/html_writer.go index 373b8bb..1a12b8b 100644 --- a/org/html_writer.go +++ b/org/html_writer.go @@ -141,6 +141,7 @@ func (w *HTMLWriter) WriteInlineBlock(b InlineBlock) { switch b.Name { case "src": lang := strings.ToLower(b.Parameters[0]) + content = w.HighlightCodeBlock(content, lang, true) w.WriteString(fmt.Sprintf("
\n%s\n
", lang, content)) case "export": if strings.ToLower(b.Parameters[0]) == "html" { diff --git a/org/testdata/inline.html b/org/testdata/inline.html index 3e6f5c0..399022e 100644 --- a/org/testdata/inline.html +++ b/org/testdata/inline.html @@ -44,7 +44,11 @@ links with slashes do not become emphasis: -

hello

+
+
+<h1>hello</h1>
+
+