Editor is replaced by 'Invalid markdown provided' naming some other language

What you are seeing

The editor is replaced by an 'Invalid markdown provided' message that names some other language.


#Why it happens

The editor could not read your text as markdown, and its language detection guessed something other than markdown, HTML, Lua or unknown. A very code-heavy document can trigger this.


#What to do

Wrap large code sections in fences, and remove anything at the top of the file that reads as another language.


#Limits that apply here

Limit

Value

What happens

Macro title and description length

50 characters each

The 'Markdown title' and 'Markdown description' fields in the macro settings, and the title field in the from-scratch editor, all stop at 50 characters.

Image load timeout

15 seconds

An image inside markdown that has not loaded in 15 seconds is replaced with '[Image load timed out: …]'.


#A few things that catch people out

  • Raw HTML is always removed: in the editor preview, in the viewer and in the static-site export.



Found it? Good.