mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
changed variable name
This commit is contained in:
@@ -117,7 +117,7 @@ const languageMaps = {
|
|||||||
elixir: 'Elixir'
|
elixir: 'Elixir'
|
||||||
}
|
}
|
||||||
|
|
||||||
const validator = (text, updateLinting) => {
|
const validatorOfMarkdown = (text, updateLinting) => {
|
||||||
const markdownlint = require('markdownlint')
|
const markdownlint = require('markdownlint')
|
||||||
const lintOptions = {
|
const lintOptions = {
|
||||||
'strings': {
|
'strings': {
|
||||||
@@ -378,7 +378,7 @@ export default class CodeEditor extends React.Component {
|
|||||||
dragDrop: false,
|
dragDrop: false,
|
||||||
foldGutter: true,
|
foldGutter: true,
|
||||||
lint: {
|
lint: {
|
||||||
'getAnnotations': validator,
|
'getAnnotations': validatorOfMarkdown,
|
||||||
'async': true
|
'async': true
|
||||||
},
|
},
|
||||||
mode: 'markdown',
|
mode: 'markdown',
|
||||||
|
|||||||
Reference in New Issue
Block a user