mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +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
|
@ -128,12 +128,7 @@ class Site extends React.Component {
|
|||
}}
|
||||
/>
|
||||
))}
|
||||
<script src={`//cdnjs.cloudflare.com/ajax/libs/highlight.js/${highlightVersion}/highlight.min.js`}></script>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `hljs.initHighlightingOnLoad();`
|
||||
}}
|
||||
/>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue