DdToken (EN) - bhsd-harry/wikiparser-node GitHub Wiki

Other Languages

Introduction

: which is at the same line with ;. This class inherits all the properties and methods of the Token class which are not repeated here.

✅ Available in the Mini and Browser versions.

Properties

indent

✅ Expand

type: number
Indentation. Read-only in the Browser version.

// indent
var dd = Parser.parse(";;a::").querySelector("dd");
assert.equal(dd, "::");
assert.strictEqual(dd.indent, 2);
// indent (main)
var dd = Parser.parse(";;a::").querySelector("dd");
dd.indent = 1;
assert.equal(dd, ":");
⚠️ **GitHub.com Fallback** ⚠️