A single passage in a story. This does not have a fromTwee() method because loading Twee may have story-wide effects.
fromTwee()
Attributes on the passage, like name or tags. These appear on the <tw-passagedata> element when published.
<tw-passagedata>
Source text of the passage.
Returns an HTML fragment for this passage, optionally setting the passage id (or pid) manually.
Optional
PID to set in the published HTML
Returns Twee source code for this story. Warning: if the Twee version specified is less than 3, this is a lossy conversion.
version of the Twee spec to use
https://github.com/iftechfoundation/twine-specs/blob/master/twee-3-specification.md
Static
Creates an instance from an HTML fragment.
source HTML to use
If true, doesn't issue any console warnings about potential problems
Generated using TypeDoc
A single passage in a story. This does not have a
fromTwee()
method because loading Twee may have story-wide effects.