Skip to content

Conversation

@christopherjbaker
Copy link

@christopherjbaker christopherjbaker commented Feb 28, 2018

prettify.js Outdated

require("./prism-config");
var Prism = require("prismjs");
require("prismjs/plugins/line-numbers/prism-line-numbers.js");
Copy link
Member

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

Copy link
Author

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) {
Copy link
Member

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?

Copy link
Author

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

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

Successfully merging this pull request may close these issues.

Add copy button for code snippets

3 participants