Browse Source

Trim Markdown Go! out of Link string

pull/362/head
Dave Machado 7 years ago
parent
commit
22591456e8
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      build/md2json.js

+ 5
- 1
build/md2json.js View File

@@ -1,7 +1,11 @@
fs = require('fs')

function md_trim(str) {
return str.replace(/(^\s+)|(\s+$)/g, "");
str = str.replace(/(^\s+)|(\s+$)/g, "");
if (str.lastIndexOf("[Go!]", 0) === 0) {
str = str.replace("[Go!]", "").slice(1, -1);
}
return str;
}

function handle(filename, anchor) {


Loading…
Cancel
Save