From 8c98f4da5cc2c621fc0309437a31e2cb159779dd Mon Sep 17 00:00:00 2001 From: lealife Date: Thu, 9 Feb 2017 11:39:30 +0800 Subject: [PATCH] markdown remove smartypants; support table align --- public/md/main-v2.js | 22 +++++++++++++++++++--- public/md/main-v2.min.js | 4 ++-- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/public/md/main-v2.js b/public/md/main-v2.js index fb333cc..0c0c6d3 100644 --- a/public/md/main-v2.js +++ b/public/md/main-v2.js @@ -12039,7 +12039,22 @@ define('extensions/markdownExtra',[ "def_list", "attr_list", "footnotes", - "smartypants", + // smartypants不要, 因为它把'和"转成了中文引号, --转成了一个– + // "smartypants", // https://daringfireball.net/projects/smartypants/ + /*s + SmartyPants is a free web publishing plug-in for Movable Type, Blosxom, and BBEdit that easily translates plain ASCII punctuation characters into “smart” typographic punctuation HTML entities. +SmartyPants can perform the following transformations: + +Straight quotes ( " and ' ) into “curly” quote HTML entities +Backticks-style quotes (``like this'') into “curly” quote HTML entities +Dashes (“--” and “---”) into en- and em-dash entities +Three consecutive dots (“...”) into an ellipsis entity +This means you can write, edit, and save your posts using plain old ASCII straight quotes, plain dashes, and plain dots, but your published posts (and final HTML output) will appear with smart quotes, em-dashes, and proper ellipses. + +SmartyPants is a combination plug-in — a single plug-in file that works with Movable Type, Blosxom, and BBEdit. It can also be used from a Unix-style command-line. + +SmartyPants does not modify characters within
, , , or