ParsedMarkdown

Ecng.Markdown

The result of parsing a markdown text: the syntax tree plus every external reference (entities, files, roles, videos, diagrams, site counters) collected during the parse.

Construtores

ParsedMarkdown
public ParsedMarkdown(MarkdownDocument document, HashSet<ValueTuple<string, long>> entityRefs, HashSet<long> fileIds, HashSet<long> roleIds, HashSet<long> videoIds, HashSet<string> diagramRefs, HashSet<SiteCounters> counterRefs, MarkdownPipeline pipeline)
parsedMarkdown = ParsedMarkdown(document, entityRefs, fileIds, roleIds, videoIds, diagramRefs, counterRefs, pipeline)

The result of parsing a markdown text: the syntax tree plus every external reference (entities, files, roles, videos, diagrams, site counters) collected during the parse.

document
The parsed markdown syntax tree.
entityRefs
Entity references found in the text as (type, id) pairs.
fileIds
Identifiers of the files the text references.
roleIds
Identifiers of the roles the text references.
videoIds
Identifiers of the videos the text references.
diagramRefs
Diagram references (numeric file id or http(s) URL).
counterRefs
Site counters the text quotes.
pipeline
The pipeline the document was parsed with.

Propriedades

CounterRefs
public HashSet<SiteCounters> CounterRefs { get; }
value = parsedMarkdown.CounterRefs

The site counters the text quotes ("@connector_count"), so the caller fetches only those.

DiagramRefs
public HashSet<string> DiagramRefs { get; }
value = parsedMarkdown.DiagramRefs

@diagram(dg) references — the raw dg argument (numeric file id or http(s) URL).

Document
public MarkdownDocument Document { get; }
value = parsedMarkdown.Document

The parsed markdown syntax tree.

EntityRefs
public HashSet<ValueTuple<string, long>> EntityRefs { get; }
value = parsedMarkdown.EntityRefs

Entity references found in the text as (type, id) pairs.

FileIds
public HashSet<long> FileIds { get; }
value = parsedMarkdown.FileIds

Identifiers of the files the text references.

Pipeline
public MarkdownPipeline Pipeline { get; }
value = parsedMarkdown.Pipeline

The pipeline the document was parsed with, so rendering stays consistent with parsing (notably whether raw HTML was kept or stripped).

RoleIds
public HashSet<long> RoleIds { get; }
value = parsedMarkdown.RoleIds

Identifiers of the roles the text references.

VideoIds
public HashSet<long> VideoIds { get; }
value = parsedMarkdown.VideoIds

Identifiers of the videos the text references.