You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The repo does not have discussions enabled so I am submitting it here. I apologise in advance if there is a better place to put these kind of questions.
For my blog I am looking into a clean way to count the number of words present in a specific article.
I came across the ToPlainText method for my Markdown. That appears to make it mostly clean text.
However, it leaves in things like the code blocks (my blog is technical, so lots of code snippets).
Is there an extension point I missed, in which I can remove code blocks from the PlainText view?
Any pointers would be appreciated
Thanks for the awesome work you did on both Markdig and Scriban
Max
The text was updated successfully, but these errors were encountered:
StringWriterwriter=newStringWriter();MarkdownDocumentdocument=Markdown.Parse(source,pipeline);// todo remove codeblocks from Document.DecendantsHtmlRendererrenderer=newHtmlRenderer(writer){EnableHtmlForBlock=false,EnableHtmlForInline=false,EnableHtmlEscape=false,};pipeline.Setup(renderer);renderer.Render(document);writer.Flush();stringresult=writer.ToString();returnresult;
Hi Xoofx,
The repo does not have discussions enabled so I am submitting it here. I apologise in advance if there is a better place to put these kind of questions.
For my blog I am looking into a clean way to count the number of words present in a specific article.
I came across the
ToPlainText
method for my Markdown. That appears to make it mostly clean text.However, it leaves in things like the code blocks (my blog is technical, so lots of code snippets).
Is there an extension point I missed, in which I can remove code blocks from the PlainText view?
Any pointers would be appreciated
Thanks for the awesome work you did on both Markdig and Scriban
Max
The text was updated successfully, but these errors were encountered: