2using System.Threading.Tasks;
77 if (!(
Arguments[0].AssociatedObjectValue is
string FileName))
84 if (!(
Arguments[1].AssociatedObjectValue is
bool b))
90 IncludeHeaders =
false;
102 Settings.AllowScriptTag = ParentSettings.AllowScriptTag;
103 Settings.AudioAutoplay = ParentSettings.AudioAutoplay;
104 Settings.AudioControls = ParentSettings.AudioControls;
105 Settings.EmbedEmojis = ParentSettings.EmbedEmojis;
106 Settings.EmojiSource = ParentSettings.EmojiSource;
107 Settings.HttpxProxy = ParentSettings.HttpxProxy;
108 Settings.LocalHttpxResourcePath = ParentSettings.LocalHttpxResourcePath;
109 Settings.RootFolder = ParentSettings.RootFolder;
110 Settings.VideoAutoplay = ParentSettings.VideoAutoplay;
111 Settings.VideoControls = ParentSettings.VideoControls;
122 Markdown = Markdown.Substring(Pos.Value).TrimStart();
LoadMarkdown(FileName[,Headers])
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
override string[] DefaultArgumentNames
Default Argument names
LoadMarkdown(ScriptNode FileName, int Start, int Length, Expression Expression)
LoadMarkdown(FileName[,Headers])
override async Task< IElement > EvaluateAsync(IElement[] Arguments, Variables Variables)
Evaluates the function.
LoadMarkdown(ScriptNode FileName, ScriptNode Headers, int Start, int Length, Expression Expression)
LoadMarkdown(FileName[,Headers])
override string FunctionName
Name of the function
Contains a markdown document. This markdown document class supports original markdown,...
static ? int HeaderEndPosition(string Markdown)
Gets the end position of the header, if one is found, null otherwise.
const string MarkdownSettingsVariableName
Variable name used for storing Markdown settings.
static async Task< string > Preprocess(string Markdown, MarkdownSettings Settings, params Type[] TransparentExceptionTypes)
Preprocesses markdown text.
Contains settings that the Markdown parser uses to customize its behavior.
static async Task< string > ReadAllTextAsync(string FileName)
Reads a text file asynchronously.
Script runtime exception.
Class managing a script expression.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes2Scalar
Two scalar parameters.
static readonly ArgumentType[] argumentTypes1Scalar
One scalar parameter.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Contains information about a variable.
virtual bool TryGetVariable(string Name, out Variable Variable)
Tries to get a variable object, given its name.
Basic interface for all types of elements.