aboutsummaryrefslogtreecommitdiffstats
path: root/gdocs.js
diff options
context:
space:
mode:
Diffstat (limited to 'gdocs.js')
-rwxr-xr-xgdocs.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdocs.js b/gdocs.js
index b51eb130..e5c13b9e 100755
--- a/gdocs.js
+++ b/gdocs.js
@@ -79,6 +79,9 @@ function download(collection, name, url) {
// strip out all text annotations
data = data.replace(/\[\w{1,3}\]/mg, '');
+ // strip out all docos comments
+ data = data.replace(/^[^\s_]+:\n\S+[\S\s]*$/m, '')
+
// fix smart-quotes
data = data.replace(/[“”]/g, '"');
data = data.replace(/[‘’]/g, "'");