2using System.Diagnostics;
4using System.Threading.Tasks;
21 private string definition =
string.Empty;
40 return Grade.NotAtAll;
50 if (Extension ==
"md")
53 return Grade.NotAtAll;
74 StringBuilder sb =
new StringBuilder();
80 Append(sb, Doc.
Title);
90 private static void Append(StringBuilder sb,
string[]
Strings)
112 #region IPropertyEvaluator
120 this.definition = Definition;
121 return Task.CompletedTask;
129 public async Task<object>
Evaluate(
object Instance)
133 if (Obj.TryGetFieldValue(
this.definition, out
object Obj2) &&
134 Obj2 is
string Markdown)
Contains a markdown document. This markdown document class supports original markdown,...
string[] Title
Title of document.
string[] Author
Author(s) of document.
string[] Subtitle
Subtitle of document.
string[] Keywords
Keywords.
static ? int HeaderEndPosition(string Markdown)
Gets the end position of the header, if one is found, null otherwise.
string[] Description
Description of document.
async Task< string > GeneratePlainText()
Generates Plain Text from the markdown text.
static Task< MarkdownDocument > CreateAsync(string MarkdownText, params Type[] TransparentExceptionTypes)
Contains a markdown document. This markdown document class supports original markdown,...
Abstract base class for Markdown renderers.
virtual async Task RenderDocument(MarkdownDocument Document, bool Inclusion)
Renders a document.
Renders plain text from a Markdown document.
Tokenizes contents defined in a Markdown document.
async Task< object > Evaluate(object Instance)
Evaluates the property evaluator, on an object instance.
Grade Supports(string Extension)
How well the file tokenizer supports files of a given extension.
Grade Supports(Type Type)
If the interface understands objects such as Type .
Task Prepare(string Definition)
Prepares the evaluator with its definition.
static async Task Tokenize(MarkdownDocument Doc, TokenizationProcess Process)
Tokenizes a Markdown document.
MarkdownTokenizer()
Tokenizes contents defined in a Markdown document.
async Task Tokenize(FileReference Reference, TokenizationProcess Process)
Tokenizes an object.
async Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Contains a reference to an indexed file.
CaseInsensitiveString FileName
Name of collection hosting object.
Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Contains information about a tokenization process.
Generic object. Contains a sequence of properties.
static async Task< string > ReadAllTextAsync(string FileName)
Reads a text file asynchronously.
Static class managing binary representations of strings.
Interface for file tokenizers. Best tokenizer is selected
Custom external property evaluator.
Interface for full-text-search tokenizers