Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"node": ">=0.4"
},
"dependencies": {
"bal-util": "~2.4.1",
"remove-indentation": "^1.0.0",
"safeps": "~2.2.11",
"taskgroup": "~3.3.6",
"jsdom": "~0.8.10"
Expand Down
4 changes: 2 additions & 2 deletions src/pygments.plugin.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Export Plugin
module.exports = (BasePlugin) ->
# Requires
balUtil = require('bal-util')
removeIndentation = require('remove-indentation')
safeps = require('safeps')
{TaskGroup} = require('taskgroup')
jsdom = require('jsdom')
Expand Down Expand Up @@ -70,7 +70,7 @@ module.exports = (BasePlugin) ->
return @

# Grab the source and language
source = balUtil.removeIndentation(bottomNode.innerHTML)
source = removeIndentation(bottomNode.innerHTML)
language = bottomNode.getAttribute('lang') or topNode.getAttribute('lang')
language = String(language).replace(/^\s+|\s+$/g,'') if language
unless language
Expand Down