Skip to content

Commit

Permalink
magic parser hgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
ksky521 committed Dec 10, 2015
1 parent f030a26 commit d421b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/md_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var parser = function(string, callback, argvObj, queryObj, commonData) {
var noteReg = /\[note\]([\s\S]+)\[\/note\]/im;
var subReg = /\[subslide\]([\s\S]+)\[\/subslide\]/im;
var magicReg = /\[magic\b(.*)\]([\s\S]+)\[\/magic\]/im;
var subSeparator = /[\-\=]{4,}/g;
var subSeparator = /[\=]{4,}/g;
contents.forEach(function(v, i) {
var cfg = slidesSetting[i];
cfg = cfg.match(/\[slide\s+(.+)\s?\]/);
Expand Down Expand Up @@ -125,7 +125,7 @@ var parser = function(string, callback, argvObj, queryObj, commonData) {
if (magicSlide.length > 1) {
v = v.replace(magicReg, EOL + SUB_SILDE_PLACEHOLDER + EOL);
magicSlide.forEach(function(v, i) {
extData.push(marked(v));
extData.push(['<div class="magic-wrapper">', contentParser(marked(v)), '</div>'].join(EOL));
});
} else {
v = v.replace(magicReg, magicSlide[0]);
Expand Down

0 comments on commit d421b15

Please sign in to comment.