diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-08-11 09:42:18 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-08-11 09:42:18 -0700 |
commit | d216661f2743385ea760b9993fdd46968e37ee42 (patch) | |
tree | de00bb67ffe5728f6175beb1ee0328354aa4f624 /lib/parse/page.js | |
parent | 74f95f4d0d404e6df533d056a5acab60623407c8 (diff) | |
parent | 50dfee99b6880da4be442bd43f475ae87a565c46 (diff) | |
download | gitbook-d216661f2743385ea760b9993fdd46968e37ee42.zip gitbook-d216661f2743385ea760b9993fdd46968e37ee42.tar.gz gitbook-d216661f2743385ea760b9993fdd46968e37ee42.tar.bz2 |
Merge pull request #403 from GitbookIO/version/1.0.0
Version 1.0.0
Diffstat (limited to 'lib/parse/page.js')
-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 }; } |