|
|
@@ -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) { |
|
|
|