diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-10 17:04:30 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 07:36:53 -0700 |
commit | 1125e89b498b827c2ce49b5ada68dd8994ad23f0 (patch) | |
tree | b23f21cc99f4aade90bf12264b1401f94c7a006a /lib/parse | |
parent | 67fd5a060b6cd0537cb99d4c4d9f34a139e3aff2 (diff) | |
download | gitbook-1125e89b498b827c2ce49b5ada68dd8994ad23f0.zip gitbook-1125e89b498b827c2ce49b5ada68dd8994ad23f0.tar.gz gitbook-1125e89b498b827c2ce49b5ada68dd8994ad23f0.tar.bz2 |
Fix error with markdown rendering
Diffstat (limited to 'lib/parse')
-rw-r--r-- | lib/parse/page.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/parse/page.js b/lib/parse/page.js index 6ef4a6d..ae71666 100644 --- a/lib/parse/page.js +++ b/lib/parse/page.js @@ -82,7 +82,7 @@ function parsePage(src, options) { return { id: section.id, type: section.type, - content: render(nonCodeNodes), + content: render(nonCodeNodes, options), lang: lang, code: { base: ci(codeNodes[0].text), @@ -104,9 +104,9 @@ function parsePage(src, options) { if (question && (((node.type === 'list_end' || node.type === 'blockquote_end') && i === quizNodes.length - 1) || node.type === 'table' || (node.type === 'paragraph' && !foundFeedback))) { quiz.push({ - base: render(question.questionNodes), - solution: render(question.solutionNodes), - feedback: render(question.feedbackNodes) + base: render(question.questionNodes, options), + solution: render(question.solutionNodes, options), + feedback: render(question.feedbackNodes, options) }); } @@ -143,7 +143,7 @@ function parsePage(src, options) { return { id: section.id, type: section.type, - content: render(nonQuizNodes), + content: render(nonQuizNodes, options), quiz: quiz }; } |