-
Notifications
You must be signed in to change notification settings - Fork 2
Prism fixes #17
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
Prism fixes #17
Conversation
…ht html template strings
052a618 to
5bf1dd6
Compare
5bf1dd6 to
f9ba9b4
Compare
prettify.js
Outdated
|
|
||
| require("./prism-config"); | ||
| var Prism = require("prismjs"); | ||
| require("prismjs/plugins/line-numbers/prism-line-numbers.js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally w/ steal, you don't include the .js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
prettify.js
Outdated
| * @return {Element|undefined} | ||
| */ | ||
| module.exports = function(){ | ||
| Prism.plugins.lineNumbers.getLine = function (element, number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add some docs explaining this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there was a bit, but I added more to the docblock above. also, this has been moved to bit-docs-html-highlight-line
fixes canjs/canjs#3447