evbacher / gd2md-html

Convert a Google Doc to Markdown or HTML. This Docs add-on converts a Google Doc to simple Markdown and/or HTML.
Apache License 2.0
649 stars 57 forks source link

Doesn't properly bold text with colon #145

Open zacharypfiz opened 3 months ago

zacharypfiz commented 3 months ago

Current: Omnibus Rule: Strengthened

Proper: Omnibus Rule: Strengthened

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

evbacher commented 2 months ago

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.

moiri-gamboni commented 3 weeks ago

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.