/// <summary>
 /// No content is added by this extension - it's all handled via script header and javascript events
 /// </summary>
 /// <param name="html"></param>
 /// <param name="markdown"></param>
 /// <param name="document"></param>
 public void AfterMarkdownRendered(ModifyHtmlAndHeadersArguments args)
 {
     if (args.Markdown.Contains(" class=\"math\""))
     {
         args.HeadersToEmbed = MathJaxScript;
     }
 }
Exemple #2
0
 /// <summary>
 /// No content is added by this extension - it's all handled via script header and javascript events
 /// </summary>
 /// <param name="args"></param>
 public void AfterMarkdownRendered(ModifyHtmlAndHeadersArguments args)
 {
     if (mmApp.Configuration.MarkdownOptions.UseMathematics &&
         (args.Html.Contains(" class=\"math\"") || args.Markdown.Contains("useMath: true")))
     {
         args.HeadersToEmbed = MathJaxScript;
     }
 }