-
Notifications
You must be signed in to change notification settings - Fork 3
ConverterToken (EN)
Bhsd edited this page Jul 7, 2026
·
10 revisions
Language conversion. This class mixes the properties and methods of ConverterFlagsToken, and inherits all the properties and methods of the Token class which are not repeated here.
All of the following properties and methods are not available in the Mini and Browser versions.
Expand
type: boolean
Whether it is not converted, read-only.
// noConvert (main)
var {firstChild} = Parser.parse("-{x}-");
assert.ok(firstChild.noConvert);Expand
returns: this
Deep clone the node.
// cloneNode (main)
var {firstChild} = Parser.parse("-{}-");
assert.deepStrictEqual(firstChild.cloneNode(), firstChild);Expand
version added: 1.10.0
param: boolean Whether to disable line breaks
returns: string
Convert to HTML.
// toHtml (main)
var {firstChild} = Parser.parse("-{ a }-");
assert.strictEqual(firstChild.toHtml(), " a ");
({firstChild} = Parser.parse("-{ a ; zh-cn : b }-"));
assert.strictEqual(firstChild.toHtml(), "b");
({firstChild} = Parser.parse("-{R| a ; zh-cn : b }-"));
assert.strictEqual(firstChild.toHtml(), " a ; zh-cn : b ");
({firstChild} = Parser.parse("-{H|a}-"));
assert.strictEqual(firstChild.toHtml(), "");对维基文本批量执行语法检查的命令行工具
轻量级的维基模板解析器
维基文本语言服务器协议实现
用于维基文本的 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