Skip to content

Commit

Permalink
修正contents表安装时的数据类型为longtext
Browse files Browse the repository at this point in the history
修复HyperDown的一个解析错误
  • Loading branch information
joyqi committed Aug 2, 2017
1 parent 3bf5d07 commit 776e454
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin/js/hyperdown.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion install/Mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion var/HyperDown.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ private function parseBlock($text, &$lines)
$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];

Expand Down

0 comments on commit 776e454

Please sign in to comment.