-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add syntax highlighting for Markdown code blocks (#255)
* Add code syntax highlighting using highlight.js * Highlight blocks without languages as plain text * Add themes for syntax highlighting * Fix CSS; support highlighting for more languages * Syntax highlight each post only once
- Loading branch information
1 parent
6fc9694
commit 56a701b
Showing
9 changed files
with
353 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
client/web/src/flybot/client/web/core/db/fx/highlight.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(ns flybot.client.web.core.db.fx.highlight | ||
(:require [cljsjs.highlight.langs.asciidoc] | ||
[cljsjs.highlight.langs.bash] | ||
[cljsjs.highlight.langs.clojure] | ||
[cljsjs.highlight.langs.clojure-repl] | ||
[cljsjs.highlight.langs.cpp] | ||
[cljsjs.highlight.langs.dockerfile] | ||
[cljsjs.highlight.langs.java] | ||
[cljsjs.highlight.langs.javascript] | ||
[cljsjs.highlight.langs.lisp] | ||
[cljsjs.highlight.langs.markdown] | ||
[cljsjs.highlight.langs.python])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.