gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.67k stars 854 forks source link

Code highlighting like in the WordPress #683

Closed 1alexvash closed 1 year ago

1alexvash commented 1 year ago

Hey, just anybody knows it is possible to achieve a similar result: image It's a code snippet on my wordpress website


When I try to use a Remark, I have the following for my markdown file: image

image

Everything gets rendered properly except the code snippet, it just rendered there like a regular text

tripu commented 1 year ago

It's supposed to work: presentation, docs in the wiki.

Care to share your working example, eg in CodePen?

1alexvash commented 1 year ago

I have found one live example how to use it properly: https://codesandbox.io/s/0h5ii?file=/components/Layout.js

Now works as expected: image

tripu commented 1 year ago

@1alexvash:

I understand now: you are using npm package remark, which is this tool, which (in spite of the name) has nothing to do with this project here.

Go here instead: https://github.com/remarkjs/remark/issues