mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 02:12:36 +02:00
[markdown] Remove client-side syntax highlighting (#189)
* Remove client side highlighting * Update CSS rules to render plain code blocks with expected left border * Add back codeColor background color config * Ensure all pre code blocks use Highlight.js classes
This commit is contained in:
parent
f72df94dd3
commit
fb294ab845
4 changed files with 25 additions and 17 deletions
|
@ -733,11 +733,14 @@ a:hover code {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
font-family: "SFMono-Regular",source-code-pro,Menlo,Monaco,Consolas,"Roboto Mono","Droid Sans Mono","Liberation Mono",Consolas,"Courier New",Courier,monospace;
|
||||
border-left: 4px solid $primaryColor;
|
||||
font-size: 13px;
|
||||
pre code {
|
||||
display:block;
|
||||
margin: 20px 0;
|
||||
padding:0.5em;
|
||||
border-left: 4px solid $primaryColor;
|
||||
font-family: "SFMono-Regular",source-code-pro,Menlo,Monaco,Consolas,"Roboto Mono","Droid Sans Mono","Liberation Mono",Consolas,"Courier New",Courier,monospace;
|
||||
font-size: 13px;
|
||||
overflow-x:auto;
|
||||
}
|
||||
|
||||
/** GitHub **/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue