rundsk / dsk

DSK, short for “Design System Kit” – a workbench for collaboratively creating Design Systems
https://rundsk.com
Other
82 stars 8 forks source link

Code highlighting #118

Closed francawinter closed 4 years ago

francawinter commented 5 years ago

Please enhance the code components. It would be very comfortable to be able to declare the programming language after the back ticks ```. In the frontend, the code should be colorful afterwards.

\```html
<div>Hello, I'm an example!</div>
\```
mariuswilms commented 5 years ago

We probably want to support both (1) providing language when using Markdown fenced code syntax and (2) when using the documentation code component directly.

As far as I know, @ChristophLabacher you're implementing (2). Regarding (1), this should be possible too but we might need to change how the backend parses Markdown: https://github.com/russross/blackfriday/issues/195#issuecomment-138807484