Permalink
Browse files

Merge pull request #6 from hai-ld/master

Use monospace font for fenced code block
  • Loading branch information...
2 parents 669558e + 5923ceb commit d717d14873062effb0f18ac7f4bda570e66cd254 @sqrrrl sqrrrl committed on GitHub May 9, 2017
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/extract_slides.js
View
@@ -266,6 +266,7 @@ inlineTokenRules['paragraph_close'] = function(token, env) {
inlineTokenRules['fence'] = function(token, env) {
+ startStyle({fontFamily: 'Courier New, monospace'}, env);
if(token.info) {
const htmlTokens = low.highlight(token.info, token.content);
for(let token of htmlTokens.value) {
@@ -279,6 +280,7 @@ inlineTokenRules['fence'] = function(token, env) {
env.text.rawText += token.content.replace(/\n/g, '\u000b');
}
env.text.rawText += '\n';
+ endStyle(env);
};
inlineTokenRules['em_open'] = function(token, env) {

0 comments on commit d717d14

Please sign in to comment.