Skip to content

Commit 6577313

Browse files
committed
Remove metadata spellcheck support
1 parent 3424cdd commit 6577313

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

public/docs/yaml-metadata.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,4 @@ This option let you to choose to parse mathjax syntax or not.
115115
**Example**
116116
```xml
117117
mathjax: false
118-
```
119-
120-
spellcheck
121-
---
122-
**Warning: Experimental feature!**
123-
This option let you to choose to enable spell checking feature or not.
124-
125-
> default: not set (which will be false)
126-
127-
**Example**
128-
```xml
129-
spellcheck: true
130118
```

public/js/extra.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,11 @@ function parseMeta(md, edit, view, toc, tocAffix) {
102102
var lang = null;
103103
var dir = null;
104104
var breaks = true;
105-
var spellcheck = false;
106105
if (md && md.meta) {
107106
var meta = md.meta;
108107
lang = meta.lang;
109108
dir = meta.dir;
110109
breaks = meta.breaks;
111-
spellcheck = meta.spellcheck;
112110
}
113111
//text language
114112
if (lang && typeof lang == "string") {
@@ -140,18 +138,6 @@ function parseMeta(md, edit, view, toc, tocAffix) {
140138
} else {
141139
md.options.breaks = true;
142140
}
143-
// spell check
144-
if (typeof editor === 'object') {
145-
var mode = null;
146-
if (typeof spellcheck === 'boolean' && spellcheck) {
147-
mode = 'spell-checker';
148-
} else {
149-
mode = 'gfm';
150-
}
151-
if (mode && mode !== editor.getOption('mode')) {
152-
editor.setOption('mode', mode);
153-
}
154-
}
155141
}
156142

157143
var viewAjaxCallback = null;

0 commit comments

Comments
 (0)