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.
#Related
Saving a macro fails with 'Unable to save changes as the loaded markdown is not associated with the
The stored document belongs to a different page than the one you are editing. Typically af
Freshly inserted macro sits on a placeholder for a long time before showing content
The document exists but has not been indexed yet, so the macro retries every 15 seconds up
Everything else
The rest of this family.
Found it? Good.
