소스 검색

Trim Markdown Go! out of Link string

pull/362/head
Dave Machado 7 년 전
부모
커밋
22591456e8
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      build/md2json.js

+ 5
- 1
build/md2json.js 파일 보기

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


불러오는 중...
취소
저장