修正contents表安装时的数据类型为longtext

修复HyperDown的一个解析错误
This commit is contained in:
joyqi 2017-08-02 11:11:46 +08:00
parent 3bf5d07fa2
commit 776e45473c
3 changed files with 3 additions and 3 deletions

View File

@ -399,7 +399,7 @@
if (block != null) {
block = block.slice(0);
}
if (!!(matches = line.match(/^(\s*)(~|`){3,}([^`~]*)$/i))) {
if (!!(matches = line.match(/^(\s*)(~{3,}|`{3,})([^`~]*)$/i))) {
if (this.isBlock('code')) {
isAfterList = block[3][2];
if (isAfterList) {

View File

@ -49,7 +49,7 @@ CREATE TABLE `typecho_contents` (
`slug` varchar(200) default NULL,
`created` int(10) unsigned default '0',
`modified` int(10) unsigned default '0',
`text` text,
`text` longtext,
`order` int(10) unsigned default '0',
`authorId` int(10) unsigned default '0',
`template` varchar(32) default NULL,

View File

@ -522,7 +522,7 @@ class HyperDown
$block = $this->getBlock();
// code block is special
if (preg_match("/^(\s*)(~|`){3,}([^`~]*)$/i", $line, $matches)) {
if (preg_match("/^(\s*)(~{3,}|`{3,})([^`~]*)$/i", $line, $matches)) {
if ($this->isBlock('code')) {
$isAfterList = $block[3][2];