-
Notifications
You must be signed in to change notification settings - Fork 3
QuoteToken (EN)
bhsd edited this page Jan 3, 2024
·
16 revisions
Single quotes (italic or bold).
✅ Available in the Mini and Browser versions.
✅ Expand
returns: LintError[]
Report potential grammar errors.
// lint
var {lastChild} = Parser.parse("''''");
assert.equal(lastChild, "'''");
assert.deepStrictEqual(lastChild.lint(), [
{
severity: 'error',
message: `lonely "'"`,
startLine: 0,
startCol: 0,
startIndex: 0,
endLine: 0,
endCol: 1,
endIndex: 1,
excerpt: "''''",
},
])
Expand
returns: this
Deep clone the node.
// cloneNode
var {firstChild} = Parser.parse("''");
assert.deepStrictEqual(firstChild.cloneNode(), firstChild);
对维基文本批量执行语法检查的命令行工具
轻量级的维基模板解析器
维基文本语言服务器协议实现
用于维基文本的 VS Code 扩展
A command-line tool that performs linting on Wikitext in bulk
A lightweight Wikitext template parser
An implementation of the Language Server Protocol for Wikitext
VS Code extension for Wikitext