Inline support
This commit is contained in:
parent
ffdd99f7e8
commit
9076494b5c
1 changed files with 4 additions and 0 deletions
|
@ -902,6 +902,10 @@ var scratchblocks = function () {
|
|||
languages: ['en'],
|
||||
}, options);
|
||||
|
||||
if (options.inline) {
|
||||
code = code.replace(/\n/g, ' ');
|
||||
}
|
||||
|
||||
var languages = options.languages.map(function(code) {
|
||||
return allLanguages[code];
|
||||
});
|
||||
|
|
Reference in a new issue