Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get wrong when specify range lines="2:5" #7

Open
Guang1234567 opened this issue Jan 9, 2018 · 0 comments
Open

Get wrong when specify range lines="2:5" #7

Guang1234567 opened this issue Jan 9, 2018 · 0 comments

Comments

@Guang1234567
Copy link

Guang1234567 commented Jan 9, 2018

This is a code snippet, display as HTML:

{% codesnippet "./myfile.ejs", lines="2:5" %}{% endcodesnippet %}

When add lines="2:5" , the below error happen:

$ gitbook --version
CLI version: 2.3.2
GitBook version: 3.2.3

in window7

** Error:**


error: error while generating page "chapter/di-yi-zhang.md":

Template render error: (D:\android_studio\my_book\chapter\di-yi-zhang.md)
TypeError: content.match is not a function
Template render error: (D:\android_studio\my_book\chapter\di-yi-zhang.md)
TypeError: content.match is not a function
at Object.exports.prettifyError (C:\Users\Administrator.gitbook\versions\3.2.3\node_modules\nunjucks\src\lib.js:34:15)
at C:\Users\Administrator.gitbook\versions\3.2.3\node_modules\nunjucks\src\environment.js:486:31
at eval (eval at (C:\Users\Administrator.gitbook\versions\3.2.3\node_modules\nunjucks\src\environment.js:565:24), :26:11)
at C:\Users\Administrator.gitbook\versions\3.2.3\node_modules\q\q.js:2031:17
at runSingle (C:\Users\Administrator.gitbook\versions\3.2.3\node_modules\q\q.js:137:13)
at flush (C:\Users\Administrator.gitbook\versions\3.2.3\node_modules\q\q.js:125:13)
at nextTickCallbackWith0Args (node.js:489:9)
at process._tickCallback (node.js:418:13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant