diff --git a/converttomarkdown.gapps b/converttomarkdown.gapps index b6344de..a48acb8 100644 --- a/converttomarkdown.gapps +++ b/converttomarkdown.gapps @@ -264,8 +264,8 @@ function processTextElement(inSrc, txt) { } pOut=pOut.substring(0, off)+'['+pOut.substring(off, lastOff)+']('+url+')'+pOut.substring(lastOff); } else if (font) { - if (!inSrc && font===font.COURIER_NEW) { - while (i>=1 && txt.getFontFamily(attrs[i-1]) && txt.getFontFamily(attrs[i-1])===font.COURIER_NEW) { + if (!inSrc && font==="Courier New") { + while (i>=1 && txt.getFontFamily(attrs[i-1]) && txt.getFontFamily(attrs[i-1])==="Courier New") { // detect fonts that are in multiple pieces because of errors on formatting: i-=1; off=attrs[i];