It's a simple regular expression that matches URLs ending with: The default regular expression is: \.(?:markdown|mdown|mkdn|md|mkd|mdwn|mdtxt|mdtext|text)(?:#.*|\?.*)?$ If the header detection is disabled or a proper content-type header is missing, the extension will check if the URL is ending with a markdown file extension. When this option is enabled the extension will check for the presence of the text/markdown and text/x-markdown content-type header before trying to match the path: Note: Take a look at the Path Matching Priority section below to see how the Markdown content is being included for or excluded from rendering! Header Detection In case you really want to you can enable the extension for all origins:Īlternatively you can use the Allow All button. The protocol can be either https, http, or a * to match both https and http. The origin consists of protocol part and domain part. Here is how you can enable the extension for the origin: When disabled, the scroll option either scrolls to the top of the document or to a certain header (anchor) if a hash URL fragment is present.ĭetecting and rendering local file URLs can be enabled by using the Allow access to file URLs option for the extension.Īccess to remote URLs however, needs to be enabled manually.When enabled, the scroll option remembers the current scroll position and scrolls back to it after page load.However you can bypass this by enabling the Disable CSP switch for that origin. For example it won't work for files hosted on the GitHub's origin. The Emoji support currently works only on local file URLs and remote origins without strict Content Security Policy (CSP) set. Currently unicode symbols like ✨ and ASCII emoji like :D are not supported.Emoji shortnames like: :sparkles: will be converted to ✨ using EmojiOne images.
MARKDOWN VIEWER CODE
Render Mermaid diagrams wrapped in mmd or mermaid fenced code blocks: The MathJax support currently works only on local file URLs and remote origins without strict Content Security Policy (CSP) set. MathJax will convert anything between these delimiters to math formulas, unless they are wrapped in backticks: `\(` or fenced code blocks.
May eventually be default with the old behavior moved into pedantic. Use smarter list behavior than the original markdown. Don't fix any of the original markdown bugs or poor behavior. This option requires the gfm option to be true.Ĭonform to obscure parts of as much as possible. Add the origins that you want enabled for the Markdown Viewer extensionĮnable GFM line breaks.Click on the Markdown Viewer icon and select Advanced Options.Navigate to file:/// in your browser and locate the markdown files that you want to read Remote Files Make sure that the Allow access to file URLs switch is turned on.Locate Markdown Viewer and click on the DETAILS button.Header Detection / Path Matching / Path Matching Priority.Autoreload / TOC / MathJax / Emoji / Scroll.
MARKDOWN VIEWER FREE
Emoji support (Icons provided free by EmojiOne).Syntax highlighted code blocks ( prism).Themes (including GitHub theme) ( jasonm23, mixu, cobalt).
MARKDOWN VIEWER FULL
Install: Chrome / Firefox / Opera / Edge Features