wiki style document editor
Revision | 11625a6e6b48a236c26ef3102286b2c9a23c2075 (tree) |
---|---|
Zeit | 2014-09-01 21:15:22 |
Autor | Hiromichi Matsushima <hylom@Hiro...> |
Commiter | Hiromichi Matsushima |
export: rename 'chapter' pragma to 'chapterNumber'
@@ -50,8 +50,8 @@ parser.parseToc = function parseToc(text) { | ||
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | - //chapterプラグマ | |
54 | - var match = text.match(/^#@chapter:\s*(\d+)\s*$/); | |
53 | + //chapterNumberプラグマ | |
54 | + var match = text.match(/^#@chapterNumber:\s*(\d+)\s*$/); | |
55 | 55 | if (match) { |
56 | 56 | var chapter = Number(match[1]); |
57 | 57 | if (!isNaN(chapter)) { |