Commit 22591456 authored by Dave Machado's avatar Dave Machado
Browse files

Trim Markdown Go! out of Link string

parent 264917a9
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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment