Skip to content

Commit

Permalink
Change the way the code highlight style is called
Browse files Browse the repository at this point in the history
  • Loading branch information
emad-elsaid committed May 8, 2024
1 parent 4e3f1e5 commit 6d86b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var MarkDownRenderer = goldmark.New(
extension.Footnote,
extension.Typographer,
highlighting.NewHighlighting(
highlighting.WithCustomStyle(styles.Dracula),
highlighting.WithCustomStyle(styles.Get("dracula")),
highlighting.WithFormatOptions(
chroma_html.WithLineNumbers(true),
),
Expand Down

0 comments on commit 6d86b64

Please sign in to comment.