Skip to content

Commit

Permalink
add configurable -lang prefix. closes #67 and #54.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Jan 9, 2013
1 parent 48e766a commit 8332826
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,8 @@ Parser.prototype.tok = function() {

return '<pre><code'
+ (this.token.lang
? ' class="lang-'
? ' class="'
+ this.options.langPrefix
+ this.token.lang
+ '"'
: '')
Expand Down Expand Up @@ -1023,7 +1024,8 @@ marked.defaults = {
pedantic: false,
sanitize: false,
silent: false,
highlight: null
highlight: null,
langPrefix: 'lang-'
};

/**
Expand Down

0 comments on commit 8332826

Please sign in to comment.