parsoid

Module node

Source
Expand description

Wikinodes represent various MediaWiki syntax constructs

Structs§

  • Represents a behavior switch (e.g. __TOC__)
  • Represents a category link ([[Category:Foo]])
  • Represents a wikitext/HTML comment.
  • DisplaySpace is a non-breaking space that is added by Parsoid in post-processing and is not present in wikitext.
  • Represents an external link ([https://example.org/ Text])
  • A section heading (== Some text ==)
  • An HTML entity that shouldn’t be decoded during transformation
  • Represents a includeonly tag (<includeonly>)
  • Represents an indicator tag (<indicator>)
  • Represents an interwiki (non-language) link ([[:en:Foo]])
  • Represents a language link ([[en:Foo]])
  • A <nowiki> tag
  • A placeholder marks DOM content that may not be edited by clients. This library does not take any steps to prevent mutation of these nodes, it is expected that users will skip any Placeholder nodes encountered.
  • Represents a redirect (#REDIRECT [[Foo]])
  • Section contains a Heading and its contents. This only covers sections generated by == headings ==, and not any <section> tag that might be present in the output (e.g. generated by an extension).
  • Represents an internal link ([[Foo|bar]])

Enums§

  • Enum that represents all the different types of nodes