-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added syntax highlighting for markdown codes (#716)
* added syntax highlighting for markdown codes * Added highlight to markdown renderer * Markdown code change test * Logging marked errors * Using sanitize * highlight styles * Removed unsed consoles * Using monokai as highlight theme * Using monokai for all markdown code, syntax highlight working on detail page * Surounded with pre code tags * Disable hljs and using rouge for builds * fied broken detail page * Added minified highlight.js with common languages * Fixed build script * Fixed build script to use yarn * Using spreading * Fixed build script to use yarn * Removed submodule * Using hightlight statically * Using built highlight.js * Static highlight.js * removed unnecessary changes * style(markdown): simplify css config
- Loading branch information
Showing
8 changed files
with
1,156 additions
and
215 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
Monokai style - ported by Luigi Maselli - http://grigio.org | ||
*/ | ||
|
||
.hljs { | ||
background: #292b2c; | ||
-webkit-font-smoothing: antialiased; | ||
border-left: 4px solid #2C8EBB; | ||
color: #ddd; | ||
max-width: 100%; | ||
margin-bottom: 1.2rem; | ||
border-radius: 3px; | ||
padding: .6rem 1.2rem; | ||
overflow-x: auto; | ||
-webkit-overflow-scrolling: touch; | ||
} | ||
|
||
.hljs-tag, | ||
.hljs-keyword, | ||
.hljs-selector-tag, | ||
.hljs-literal, | ||
.hljs-strong, | ||
.hljs-name { | ||
color: #f92672; | ||
} | ||
|
||
.hljs-code { | ||
color: #66d9ef; | ||
} | ||
|
||
.hljs-class .hljs-title { | ||
color: white; | ||
} | ||
|
||
.hljs-attribute, | ||
.hljs-symbol, | ||
.hljs-regexp, | ||
.hljs-link { | ||
color: #bf79db; | ||
} | ||
|
||
.hljs-string, | ||
.hljs-bullet, | ||
.hljs-subst, | ||
.hljs-title, | ||
.hljs-section, | ||
.hljs-emphasis, | ||
.hljs-type, | ||
.hljs-built_in, | ||
.hljs-builtin-name, | ||
.hljs-selector-attr, | ||
.hljs-selector-pseudo, | ||
.hljs-addition, | ||
.hljs-variable, | ||
.hljs-template-tag, | ||
.hljs-template-variable { | ||
color: #a6e22e; | ||
} | ||
|
||
.hljs-comment, | ||
.hljs-quote, | ||
.hljs-deletion, | ||
.hljs-meta { | ||
color: #75715e; | ||
} | ||
|
||
.hljs-keyword, | ||
.hljs-selector-tag, | ||
.hljs-literal, | ||
.hljs-doctag, | ||
.hljs-title, | ||
.hljs-section, | ||
.hljs-type, | ||
.hljs-selector-id { | ||
font-weight: bold; | ||
} |
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.