Skip to content
Discussion options

You must be logged in to vote

There is no easy way as fenced code blocks just aren't specced to work like you are suggesting, but there is a way to do so with custom fences. You'd have to override the default fences and wrap its logic with some that specify the language as yaml if no language is provided.

I'm on vacation right now, so I don't really have time to show an example here, but when I get back, I can probably illustrate what I mean.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by squidfunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants