gdocs2md icon indicating copy to clipboard operation
gdocs2md copied to clipboard

Treat consolas font as monospaced/backticked text as well.

Open avengerx opened this issue 8 years ago • 0 comments

Hi, I found the Consolas font "cuter" in my google docs and I am using this change to lines 267-268 of the script:

     if (!inSrc && (font===font.COURIER_NEW || font=="Consolas")) {
        while (i>=1 && txt.getFontFamily(attrs[i-1]) && (txt.getFontFamily(attrs[i-1])===font.COURIER_NEW || txt.getFontFamily(attrs[i-1])=="Consolas")) {

I'm not keen enough to guess what constant is from font.* that will match the Consolas font, but this way works for me. :)

(sorry I am too lazy to make a proper/decent pull request, so the alternative is here for whoever wants to implement to the code)

avengerx avatar Jun 01 '17 05:06 avengerx