# Viewer shows 'Invalid markdown provided' instead of the document **What you are seeing** The viewer shows 'Invalid markdown provided' instead of the document. --- ## Why it happens The content did not look like Markdown to the viewer, which names the language it detected instead of rendering the file. --- ## What to do Confirm the file really contains Markdown. --- ## Limits that apply here | **Limit** | **Value** | **What happens** | | ---------------------- | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Large document preview | About 1,000,000 characters | Read-only previews longer than this switch to a virtualised viewer that renders in chunks as you scroll, so browser find-in-page and similar behaviour differ. | | Raw HTML in Markdown | Not rendered | The viewer strips HTML and sanitises output, so HTML tags embedded in a Markdown document do not render. | --- ## Related [There is no way to restrict who can add Markdown, turn diagram languages on or off, point diagrams a](https://help.gocapable.com/jira-markdown/there-is-no-way-to-restrict-who-can-add-markdown-turn-diagram-languages-on-or-off-point-diagrams-a.html) [Security review asks where document content and diagram source goAll external addresses are declared as not in scope for end-user data.](https://help.gocapable.com/jira-markdown/security-review-asks-where-document-content-and-diagram-source-go.html) [Everything elseThe rest of this family.](https://help.gocapable.com/jira-markdown/everything-else.html) --- _Found it? Good._