-
Notifications
You must be signed in to change notification settings - Fork 5
Markdown2Pdf.Options.ModuleOptions
Namespace: Markdown2Pdf.Options
Assembly: Markdown2Pdf.dll
Options that decide from where to load additional modules.
public class ModuleOptionsobject.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()
For the option String) the npm packages specified in the README need to be installed.
Provides information from where to load modules.
public ModuleLocation ModuleLocation { get; }Don't load any additional modules. With this only basic markdown features are enabled.
public static ModuleOptions None { get; }Loads the node_modules over a CDN e.g. https://cdn.jsdelivr.net.
public static ModuleOptions Remote { get; }This option requires an internet connection.
Loads the node_modules from the given (local) npm directory.
public static ModuleOptions FromLocalPath(string modulePath)modulePath string
The path to the node_module directory.
For this to work, following npm packages need to be installed:
npm i mathjax@3
npm i mermaid@10
npm i font-awesome
npm i @highlightjs/cdn-assets@11
npm i github-markdown-css
npm i latex.css