Convert inline style "font-weight: bold" to **bold**
Closed this issue · 1 comments
icnocop commented
I'd like to request a new feature to support converting inline font-weight: bold
style to markdown **bold**
.
Steps to reproduce the problem
[TestMethod]
public void ConvertInlineStyleFontWeightBold()
{
string html = @"
<html>
<body>
<p style=""font-weight: bold;"">Hello World</p>
</body>
</html>";
Converter converter = new Converter();
string markdown = converter.Convert(html).Trim();
Assert.AreEqual("**Hello World**", markdown);
}
Expected behavior
I expected <p style="font-weight: bold;">Hello World</p>
to be converted to **Hello World**
.
Actual Behaviour
<p style="font-weight: bold;">Hello World</p>
is converted to Hello World
.
Thank you.
icnocop commented
I'm able to pre-process the HTML using the code example here:
https://stackoverflow.com/a/18953078/90287
😃