Resource
A Subdocument that is bound to a file or resource available at a specific path and can be referenced by a link from the main document or another subdocument.
Parameters
the name of the subdocument, without extension
the absolute path to the subdocument file or resource
the working directory to be used to resolve relative file paths within the subdocument. Note that if this is null
, then the pipeline's working directory should be used. To get consistent results, rely on the context's com.quarkdown.core.context.file.FileSystem.workingDirectory.
the subdocument text content
Properties
Functions
Returns the output file name for the subdocument, based on the context's options. If the pipeline enforces minimal subdocument collisions (com.quarkdown.core.pipeline.PipelineOptions.minimizeSubdocumentCollisions), Subdocument.uniqueName is returned, otherwise just Subdocument.name, which is more human-readable but prone to collisions.