Skip to content

Monaco or Coremirror support? #445

Discussion options

You must be logged in to vote

@CapitaineToinon: Here's a minimal Monaco configuration for Markdoc that includes support for syntax highlighting, validation, tag region folding, and clickable file attribute in the partial tag: https://gist.github.com/rpaul-stripe/986ab19947a9e53236dffcc55694663e

You will need to provide your own Markdoc config in order for the validator to operate correctly on your custom tags. The syntax highlighting in that example is forked directly from the upstream Markdown highlighting rules for Monaco and modified to include support for Markdoc tags.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@CapitaineToinon
Comment options

@rpaul-stripe
Comment options

Answer selected by rpaul-stripe
@CapitaineToinon
Comment options

@rodbs
Comment options

@adriangalilea
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants