Open ahmetb opened 7 years ago
Why specific font? Why not just use three three back-ticks like ``` to quote the code block in google doc?
But it seems that original code just eat all the string. I tried to figure it out. But I'm not a Javascript developer. That takes me some time.
courier new font detection logic was in the code, but google script change it is broken. I made a pull request that fixes it.
This project is awesome.
It would be even more awesome if it detected monospace fonts (e.g. Courier, Roboto Mono) and produced inline markdown surrounded with single backticks (producing a
<code>foo</code>
).This would work if the monospace-styled text is in a paragraph with normal text.