-
Notifications
You must be signed in to change notification settings - Fork 3
NowikiBaseToken (EN)
Bhsd edited this page Apr 18, 2026
·
3 revisions
The parent class of CommentToken, DoubleUnderscoreToken, HrToken, ListBaseToken, NoincludeToken, QuoteToken and the rest. This class inherits all the properties and methods of the Token class which are not repeated here.
✅ Available in the Mini and Browser versions.
✅ Expand
type: string
Text content.
// innerText
var {firstChild} = Parser.parse("<!-- a -->");
assert.equal(firstChild, "<!-- a -->");
assert.strictEqual(firstChild.innerText, " a ");Expand
param: this
Deep clone the node.
// cloneNode (main)
var nowiki = Parser.parse("<nowiki>a</nowiki>").firstChild.lastChild;
assert.equal(nowiki, "a");
assert.deepStrictEqual(nowiki.cloneNode(), nowiki);
nowiki = Parser.parse("----").firstChild;
assert.deepStrictEqual(nowiki.cloneNode(), nowiki);
nowiki = Parser.parse("* a").firstChild;
assert.equal(nowiki, "* ");
assert.deepStrictEqual(nowiki.cloneNode(), nowiki);对维基文本批量执行语法检查的命令行工具
轻量级的维基模板解析器
维基文本语言服务器协议实现
用于维基文本的 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