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
[InlineData("## License\n\tLicensed under the Apache License, Version 2.0 (the \"License\");","<h3>License</h3>\n<pre><code>Licensed under the Apache License, Version 2.0 (the "License");\n</code></pre>",false,true)]
107
-
[InlineData("## License\n\tLicensed under the Apache License, Version 2.0 (the \"License\");","<h3>License</h3>\n<pre><code>Licensed under the Apache License, Version 2.0 (the "License");\n</code></pre>",false,true)]
106
+
[InlineData("## License\n\tLicensed under the Apache License, Version 2.0 (the \"License\");","<h3 id=\"license\">License</h3>\n<pre><code>Licensed under the Apache License, Version 2.0 (the "License");\n</code></pre>",false,true)]
107
+
[InlineData("## License\n\tLicensed under the Apache License, Version 2.0 (the \"License\");","<h3 id=\"license\">License</h3>\n<pre><code>Licensed under the Apache License, Version 2.0 (the "License");\n</code></pre>",false,true)]
[InlineData("This is a http://www.google.com URL and https://www.google.com","<p>This is a <a href=\"http://www.google.com/\" rel=\"noopener noreferrer nofollow\">http://www.google.com</a> URL and <a href=\"https://www.google.com/\" rel=\"noopener noreferrer nofollow\">https://www.google.com</a></p>")]
228
+
[InlineData("# This is a heading\n[Link](#this-is-a-heading)","<h2 id=\"this-is-a-heading\">This is a heading</h2>\n<p><a href=\"#this-is-a-heading\" rel=\"noopener noreferrer nofollow\">Link</a></p>")]
varoriginalMd="This is a http://www.google.com URL and https://www.google.com";
230
-
231
-
varexpectedHtml="<p>This is a <a href=\"http://www.google.com/\" rel=\"noopener noreferrer nofollow\">http://www.google.com</a> URL and <a href=\"https://www.google.com/\" rel=\"noopener noreferrer nofollow\">https://www.google.com</a></p>";
[InlineData("# This is a heading","<h2 id=\"this-is-a-heading\">This is a heading</h2>")]
250
+
[InlineData("# This - is a &@! heading _ with . and ! -","<h2 id=\"this-is-a-heading_with.and\">This - is a &@! heading _ with . and ! -</h2>")]
251
+
[InlineData("# This is a *heading*","<h2 id=\"this-is-a-heading\">This is a <em>heading</em></h2>")]
252
+
[InlineData("# This is a [heading](https://www.google.com)","<h2 id=\"this-is-a-heading\">This is a <a href=\"https://www.google.com/\" rel=\"noopener noreferrer nofollow\">heading</a></h2>")]
0 commit comments