Replies: 1 comment 3 replies
-
Unfortunately no @ayodyln because there's a processing step by Highlight.js that kind of scrambles the output. To see what I mean try viewing the source for the code blocks after syntax highlighting runs. You'll see a bunch of spans and classes added. This means what you're seeing isn't really what you would be editing. What I might suggest instead is looking for a WYSIWYG editor that supports markdown. You might have to pair it with your own markdown parser for the output. However I'd be shocked if a combined solution doesn't already exist. Maybe look into something like this? edit Here's a bigger list: |
Beta Was this translation helpful? Give feedback.
-
I'm starting to work on making an in-browser text editor, which is basic in nature. Just serve a specific purpose on my portfolio site. I would be writing articles in HTML/MD in a content editable div. But... I'm missing the highlighting and stuff. Is adding a prop to the code block component that makes this feature possible?
So that I have highlighted text?
Beta Was this translation helpful? Give feedback.
All reactions