Look for a javascript label library that can parse code blocks in `` `` and `` `

The default syntax for code blocks is "missing 4 spaces per line."

But this is not very convenient for long code, instead using:

``` code block ``` 

will be much better.

I am looking for a javascript label library that has this function, could you recommend some?

PS: I need a browser.

+6
source share
1 answer

https://github.com/chjj/marked

They are referred to as "fences" and are a sign of github markdowns.

+7
source

Source: https://habr.com/ru/post/917847/


All Articles