Darginec05 / Yoopta-Editor

Build Notion-like, Craft-like, Coda-like, Medium-like editors with Yoopta
https://yoopta.dev/
MIT License
1.47k stars 113 forks source link

Does the content of the code block support formatting options ? #399

Open johncodeai opened 4 days ago

johncodeai commented 4 days ago

Is this a unique feature?

Is your feature request related to a problem/unavailable functionality? Please describe.

Does the content of the code block support formatting options like Bold, Strike-through, Highlight, etc.? I've noticed that many editors offer this feature. This feature may be required for code highlighting, special comments, page search, and more.

image

Proposed Solution

Allow Bold, Strike-through, Highlight, and other formatting options to be applied to code block content.

Screenshots

No response

Do you want to work on this issue?

No

If "yes" to the above, please explain how you would technically implement this (issue will not be assigned if this is skipped)

No response

Darginec05 commented 3 days ago

The Code plugin has its own editor via Codemirror, so now it is impossible to highlight text in bold, italics, etc. I have plans to create another package (lightweight version of the Code) using the Slate editor, not external editor

johncodeai commented 2 days ago

The Code plugin has its own editor via Codemirror, so now it is impossible to highlight text in bold, italics, etc. I have plans to create another package (lightweight version of the Code) using the Slate editor, not external editor

That's great, looking forward to the new code package!