From 10ed729f8498a1345a33cf017234517250f10a2f Mon Sep 17 00:00:00 2001 From: joyqi Date: Wed, 20 Nov 2013 11:16:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8marked.js=E4=BB=A5=E5=8F=8AMarkdownExt?= =?UTF-8?q?raExtended=E6=9B=BF=E6=8D=A2=E6=97=A7=E7=9A=84markdown=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E5=BC=95=E6=93=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 全面支持表格,以及回车换行 --- .gitattributes | 15 + admin/editor-js.php | 34 +- admin/js/markdown.js | 5416 ----------------- admin/js/marked.js | 1168 ++++ admin/js/pagedown.js | 2426 ++++++++ usr/themes/default/header.php | 131 +- var/Markdown.php | 1631 ----- var/MarkdownExtraExtended.php | 3245 ++++++++++ .../Widget/Helper/PageNavigator/Box.php | 9 +- var/Widget/Abstract/Contents.php | 6 +- var/Widget/Archive.php | 7 +- 11 files changed, 6962 insertions(+), 7126 deletions(-) create mode 100644 .gitattributes delete mode 100644 admin/js/markdown.js create mode 100644 admin/js/marked.js create mode 100644 admin/js/pagedown.js delete mode 100644 var/Markdown.php create mode 100644 var/MarkdownExtraExtended.php diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..acc5026f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,15 @@ +# Set default behaviour, in case users don't have core.autocrlf set. +* text=auto + +# Explicitly declare text files we want to always be normalized and converted +# to native line endings on checkout. +*.php text eol=lf +*.js text eol=lf +*.css text eol=lf +*.html text eol=lf +*.xml text eol=lf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary + diff --git a/admin/editor-js.php b/admin/editor-js.php index 1a356645..5b810565 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -1,5 +1,6 @@ markdown && (!$content->have() || $content->isMarkdown)): ?> - + +