1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

changed variable name

This commit is contained in:
roottool
2019-01-29 21:00:47 +09:00
parent 3a96164c27
commit afbc8eec75

View File

@@ -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',