Enhancement: Support Markdown in the WYSIWYG field #682

Closed
opened 2026-10-05 03:00:08 +02:00 by adam · 7 comments
Owner

Discussed in https://github.com/estruyf/vscode-front-matter/discussions/865

Originally posted by MrHinsh October 8, 2024
I use markdown in all of my content variables in the front matter. I really don't see why one would want HTML in there when its in a *.md file and the rest is markdown.

How can I have a multi-line textbox but prevent any HTML from being added?


As the WYSIWYG field option only supports HTML at the moment. An enhancement is required to support markdown.

### Discussed in https://github.com/estruyf/vscode-front-matter/discussions/865 <div type='discussions-op-text'> <sup>Originally posted by **MrHinsh** October 8, 2024</sup> I use markdown in all of my `content` variables in the front matter. I really don't see why one would want HTML in there when its in a *.md file and the rest is markdown. How can I have a multi-line textbox but prevent any HTML from being added?</div> --- As the WYSIWYG field option only supports HTML at the moment. An enhancement is required to support markdown. <!-- github-sync-id:2575771741 -->
adam closed this issue 2026-10-05 03:00:09 +02:00
Author
Owner

FYI it would be Markdown output!

FYI it would be Markdown output! <!-- github-comment-id:2402337434 -->
Author
Owner

@MrHinsh yes, the plan is to output markdown instead of HTML.

@MrHinsh yes, the plan is to output markdown instead of HTML. <!-- github-comment-id:2402341185 -->
Author
Owner

Just wanted to be 100% :)

Just wanted to be 100% :) <!-- github-comment-id:2402431521 -->
Author
Owner

@MrHinsh, I've provided an option to change the behavior of the WYSIWYG field so that it can output markdown.

You can install the latest beta version (disable or uninstall the main version).

Configuration for the field looks as follows

{
  "title": "Markdown",
  "name": "markdown",
  "type": "string",
  "wysiwyg": "markdown"
}
@MrHinsh, I've provided an option to change the behavior of the WYSIWYG field so that it can output markdown. You can install the latest beta version (disable or uninstall the main version). Configuration for the field looks as follows ```json { "title": "Markdown", "name": "markdown", "type": "string", "wysiwyg": "markdown" } ``` <!-- github-comment-id:2404279204 -->
Author
Owner

Enabled and testing!

Enabled and testing! <!-- github-comment-id:2404545404 -->
Author
Owner

Hey.. I dont get the button to launch from the beta?

image

Hey.. I dont get the button to launch from the beta? ![image](https://github.com/user-attachments/assets/9d268d6a-c472-4903-86ad-f8474db5ea43) <!-- github-comment-id:2404719777 -->
Author
Owner

Never mind... restarted VS...

Never mind... restarted VS... <!-- github-comment-id:2404720705 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#682