gd2md-html icon indicating copy to clipboard operation
gd2md-html copied to clipboard

Doesn't properly bold text with colon

Open zacharypfiz opened this issue 1 year ago • 2 comments

Current: **Omnibus Rule: **Strengthened

Proper: Omnibus Rule: Strengthened

It is currently showing the ** and not bolding the text or colon.

zacharypfiz avatar Jun 18 '24 06:06 zacharypfiz

If you bolded the space in the Google Doc, you will get the second result. I tried this out in a Google Doc and got the same result as you (second line with the space bolded in the Google Doc):

Omnibus Rule: Strengthened **Omnibus Rule: **Strengthened

I suppose I could try to correct for this error, but I am worried that it may introduce other unintended consequences.

evbacher avatar Jun 27 '24 20:06 evbacher

I'm also facing this issue, as you said @evbacher it has to do with spaces being bolded (it also applies to italics, btw). But the current output is not valid MDX (which is CommonMark as far as the markdown part goes, from what I understand), and it causes issues with parsing, so I would like to see this changed. And they're not easy to catch from Google docs, you have to convert the markdown and parse it to find extraneous asterisks or underscores.

moiri-gamboni avatar Aug 28 '24 18:08 moiri-gamboni