From 97379cd81ba8aec407c05c35222a65b5eaf1e7a1 Mon Sep 17 00:00:00 2001 From: Renato Mangini Date: Tue, 25 Jun 2013 15:44:49 +0200 Subject: [PATCH] Fix issue #15 replaces Unicode quotation marks (fixes issue #15) --- converttomarkdown.gapps | 3 +++ 1 file changed, 3 insertions(+) diff --git a/converttomarkdown.gapps b/converttomarkdown.gapps index 6dd6a7a..22e5bb7 100644 --- a/converttomarkdown.gapps +++ b/converttomarkdown.gapps @@ -140,6 +140,9 @@ function processParagraph(index, element, inSrc, imageCounter, listCounters) { pOut += processTextElement(inSrc, textElements[i]); } + // replace Unicode quotation marks + pOut = pOut.replace('\u201d', '"').replace('\u201c', '"'); + result.text = prefix+pOut; }