Markdown Viewer / Browser Extension
|
|
%!s(int64=8) %!d(string=hai) anos | |
|---|---|---|
| background | %!s(int64=8) %!d(string=hai) anos | |
| content | %!s(int64=8) %!d(string=hai) anos | |
| css | %!s(int64=9) %!d(string=hai) anos | |
| images | %!s(int64=9) %!d(string=hai) anos | |
| themes | %!s(int64=9) %!d(string=hai) anos | |
| vendor | %!s(int64=9) %!d(string=hai) anos | |
| .editorconfig | %!s(int64=9) %!d(string=hai) anos | |
| LICENSE | %!s(int64=8) %!d(string=hai) anos | |
| README.md | %!s(int64=8) %!d(string=hai) anos | |
| manifest.json | %!s(int64=8) %!d(string=hai) anos | |
| syntax.md | %!s(int64=9) %!d(string=hai) anos |
markdown|mdown|mkdn|md|mkd|mdwn|mdtxt|mdtext|text| Option | Default | Description |
|---|---|---|
| gfm | true |
Enable GFM GitHub Flavored Markdown. |
| tables | true |
Enable GFM tables. This option requires the gfm option to be true. |
| breaks | false |
Enable GFM line breaks. This option requires the gfm option to be true. |
| pedantic | false |
Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior. |
| sanitize | false |
Sanitize the output. Ignore any HTML that has been input. |
| smartLists | false |
Use smarter list behavior than the original markdown. May eventually be default with the old behavior moved into pedantic. |
| smartypants | false |
Use "smart" typograhic punctuation for things like quotes and dashes. |
To enable the extensions for local files:
chrome://extensionsAllow access to file URLs checkbox is checked for the Markdown Viewer extensionOptionsMarkdown Viewer doesn't require any specific permissions in order to render markdown files from local file URLs. For example the file:///home/s/chrome/markdown-viewer/README.md on my hard drive will always be rendered without a problem.
In case you want the extension to render markdown files from web URLs you have to specify the server's origin. The origin consists of [protocol]://[domain] For example adding https://raw.githubusercontent.com will allow the extension to render markdown files from that origin.
By default the extension renders only URLs ending with a markdown file extension. For example if you add the https://raw.githubusercontent.com origin, then the https://raw.githubusercontent.com/simov/markdown-viewer/master/README.md URL will be rendered as markdown file.
At any point you can remove the allowed origin.
In case a custom path matching is needed, for example https://something.com/some-path then after adding the http://something.com origin you'll have to set the path matching regular expression as well \/some-path$.
Markdown Viewer synchronizes your preferences across multiple devices so your list of allowed origins is always up to date. However the actual permissions are not being synced automatically. In case you recently added a new origin on one of your computers you'll have to allow it on your other computers as well. Just click on the Refresh icon to add the same permission on the computer you are currently on.
Markdown Viewer is an Open Source project hosted on GitHub. In case you have any problems with it, questions or other suggestions open up an issue there https://github.com/simov/markdown-viewer/issues.
Compiler OptionsMarkdown/HTML button to switch between raw markdown and rendered HTMLDefaults button to reset back the compiler's optionsThe MIT License (MIT)
Copyright (c) 2013-2017 Simeon Velichkov [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.