mirror of
https://github.com/typecho/typecho.git
synced 2025-01-31 03:12:21 +01:00
修正contents表安装时的数据类型为longtext
修复HyperDown的一个解析错误
This commit is contained in:
parent
3bf5d07fa2
commit
776e45473c
@ -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) {
|
||||
|
@ -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,
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user