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
There are many HTML tags such as p, span, div, ...etc. reserved unnecessary spaces that will lead to generate wrong Markdown document.
Here is my code snippet:
voidMain(){varhtml= """
<h1>Announcing SQL Server Data Tools (SSDT) for ARM64 Architecture in Visual Studio 17.10 Preview 2</h1>
<p>
March 20th, 2024</p>
""";varconfig=new ReverseMarkdown.Config
{// Include the unknown tag completely in the result (default as well)UnknownTags= Config.UnknownTagsOption.Drop,// generate GitHub flavoured markdown, supported for BR, PRE and table tagsGithubFlavored=true,// will ignore all commentsRemoveComments=true,// remove markdown output for links where appropriateSmartHrefHandling=true,ListBulletChar='-',SuppressDivNewlines=true,};(new ReverseMarkdown.Converter(config)).Convert(html).Dump();}
The output:
# Announcing SQL Server Data Tools (SSDT) for ARM64 Architecture in Visual Studio 17.10 Preview 2 March 20th, 2024
I think the "spaces" before March 20th, 2024 should be removed.
I think, this has to be made configurable, will take a look. Earlier someone posted an issue that they want everything intact hence some changes were made to not trim things around.
There are many HTML tags such as
p
,span
,div
, ...etc. reserved unnecessary spaces that will lead to generate wrong Markdown document.Here is my code snippet:
The output:
I think the "spaces" before
March 20th, 2024
should be removed.The LINQPad query: https://share.linqpad.net/626vojje.linq
The text was updated successfully, but these errors were encountered: