markdown语法验证器

时间:2012-12-01 23:54:49

标签: markdown jekyll octopress

使用Octopress(Jekyll)时是否有任何具体的写作降价规则?

我已经尝试将其粘贴到:http://markable.in/editor/ 它看起来很好但是当我使用rake preview从降价源生成html时,它只会生成一个空白页面。

这是导致转换为html时出错的第一个代码块。我删除了它,一切正常。但我不知道为什么这段代码不起作用。有没有我可以安装的插件来使解释器(它的名称是什么?)不那么敏感。或者是否有任何工具可以向我指出源的确切错误。

```
php artisan generate:migration create_departments_table department:string

php artisan generate:migration create_roles_table department_id:integer role:string

php artisan generate:migration create_transactions_table department_id:integer main_menu:string menu_text:string address:string

php artisan generate:migration create_rolestransactions_table role_id:integer transaction_id:integer status:integer

php artisan generate:migration create_userlogs_table user_id:integer user:string department:string transaction:string dateandtime:timestamp
```

这是来源: https://gist.github.com/4186168

也许你可以向我指出我做错了什么。也许你可以指出一个链接到写入降价的规则,它与解释器完美配合。

更新

生成的html页面上没有任何内容。我已经安装了斜杠主题https://github.com/tommy351/Octopress-Theme-Slash

以下是已安装的插件:

enter image description here

我认为其中大部分都是默认插件,因为我不记得安装了插件。如果它可能会有所帮助,我就在Windows上。

1 个答案:

答案 0 :(得分:1)

当我使用markdown可执行文件转换代码时,它可以正常工作,但解释错误。

你不应该在三个反引号之间放置代码块,只需用4个空格缩进它们。反引号用于内联代码。

编辑:我忽略了backtick-block-code插件。上面的内容是假的。