Package org.ctan.markup.gfm.ext
Class NamedEntityExtension.Builder
java.lang.Object
org.ctan.markup.gfm.ext.NamedEntityExtension.Builder
- Enclosing class:
NamedEntityExtension
The class
Builder contains the builder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()The methodbuildstarts the building process.Registers multiple entities at once from the supplied map.Registers a named entity and its HTML replacement.replaceLogoText(boolean replace) When set totrue, plain-text occurrences of registered logo names (e.g.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
The methodbuildstarts the building process.- Returns:
- the entity
-
entities
Registers multiple entities at once from the supplied map.- Parameters:
entities- map of entity name to HTML replacement- Returns:
- this builder for chaining
-
entity
Registers a named entity and its HTML replacement.- Parameters:
name- the entity name without&/;(e.g."TeX")html- the raw HTML to emit instead (e.g. a<span>tree)- Returns:
- this builder for chaining
-
replaceLogoText
When set totrue, plain-text occurrences of registered logo names (e.g. a bareLaTeXin a paragraph) are also replaced with the configured HTML, as if the author had written&LaTeX;. Text inside code spans and code blocks is never affected.Defaults to
false.- Parameters:
replace-trueto enable plain-text replacement- Returns:
- this builder for chaining
-