Skip to content

Commit

Permalink
Fix code tag in markdown exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezas committed Aug 27, 2016
1 parent 047c542 commit 0f06b3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pen.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@
li: [/<(li)\b[^>]*>(.*?)<\/\1>/ig, '* $2\n'],
blockquote: [/<(blockquote)\b[^>]*>(.*?)<\/\1>/ig, '\n> $2\n'],
pre: [/<pre\b[^>]*>(.*?)<\/pre>/ig, '\n```\n$1\n```\n'],
code: [/<code\b[^>]*>(.*?)<\/code>/ig, '\n`\n$1\n`\n'],
p: [/<p\b[^>]*>(.*?)<\/p>/ig, '\n$1\n'],
hr: [/<hr\b[^>]*>/ig, '\n---\n']
};
Expand Down

0 comments on commit 0f06b3d

Please sign in to comment.