Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Custom theme support
- GitHub Flavored Markdown (GFM)
- Auto reload on file change
- Optional copy buttons for fenced code blocks
- Syntax highlighted code blocks ([prism][prism])
- Table of Contents (ToC)
- MathJax formulas ([mathjax])
Expand Down Expand Up @@ -113,6 +114,7 @@ Full **CommonMark** support including **GFM** tables and strikethrough **+**
| Option | Default | Description
| :- | :-: | :-
| **autoreload** | `false` | Auto reload on file change
| **copy** | `false` | Show copy buttons on fenced code blocks
| **emoji** | `false` | Convert emoji `:shortnames:` into EmojiOne images
| **mathjax** | `false` | Render MathJax formulas
| **mermaid** | `false` | Render Mermaid diagrams
Expand Down
4 changes: 4 additions & 0 deletions background/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ md.storage.defaults = (compilers) => {
},
content: {
autoreload: false,
copy: false,
emoji: false,
mathjax: false,
mermaid: false,
Expand Down Expand Up @@ -133,6 +134,9 @@ md.storage.migrations = (state) => {
if (state.content.syntax === undefined) {
state.content.syntax = true
}
if (state.content.copy === undefined) {
state.content.copy = false
}
if (state.themes.wide !== undefined) {
if (state.themes.wide) {
state.themes.width = 'full'
Expand Down
Loading