Editor is replaced by 'Invalid markdown provided' naming some other language
What you are seeing
The editor is replaced by 'Invalid markdown provided' naming some other language.
#Why it happens
The renderer threw on the current text AND language detection guessed something other than markdown, HTML, Lua or unknown. A very code-heavy document can trip this.
#What to do
Wrap large code sections in fences and remove anything that reads as another language at the top of the file.
#Limits that apply here
Limit | Value | What happens |
|---|---|---|
Macro title and description input length | 50 characters each | The macro config's 'Markdown title' and 'Markdown description' fields and the from-scratch editor's title field 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 stripped, in the editor preview, the viewer and 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.
