Skip to content

Commit

Permalink
Set code blocks as fenced.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpfs committed Mar 30, 2016
1 parent 43f2d42 commit 9512fe1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ function exec(cb) {
code = Node.createNode(Node.CODE_BLOCK);

code.literal = '' + res;
code._isFenced = true;
code._fenceChar = '`'
code._fenceLength = 3;

if(info) {
code.info = info;
}
Expand Down
3 changes: 3 additions & 0 deletions lib/macro.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ function macro(cb) {
}
code = Node.createNode(Node.CODE_BLOCK);
code.literal = result;
code._isFenced = true;
code._fenceChar = '`'
code._fenceLength = 3;
if(info) {
code.info = info;
}
Expand Down
3 changes: 3 additions & 0 deletions lib/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ function source(cb) {
var code = Node.createNode(Node.CODE_BLOCK);

code.literal = result;
code._isFenced = true;
code._fenceChar = '`'
code._fenceLength = 3;
if(info) {
code.info = info;
}
Expand Down

0 comments on commit 9512fe1

Please sign in to comment.