Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

markdown syntax validator

Are there any specific rules for writing markdown when using Octopress(Jekyll)?

I've already tried pasting it to: http://markable.in/editor/ and it looks fine but when I use rake preview to generate the html from the markdown source it just generates a blank page.

This was the first block of code that cause the error in converting to html. I removed it and everything worked. But I don't know exactly why this block of code wouldn't work. Are there any plugins that I could install to make the interpreter(is that what's its called?) less sensitive. Or are there any tools out there that could point out to me what exactly is wrong with the source.

```
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
```

Here's the source: https://gist.github.com/4186168

Maybe you could point out to me what I'm doing wrong. Maybe you could point out a link to the rules to be followed for writing markdown that works perfectly with the interpreter.

Update

There is nothing on the html page that is generated. I've installed slash theme https://github.com/tommy351/Octopress-Theme-Slash

Here are the plugins that are installed:

enter image description here

I think most of them are default plugins because I don't remember having installed a plugin. And also if it might help, I'm on Windows.

like image 436
user225269 Avatar asked Nov 12 '22 16:11

user225269


1 Answers

When I transform your code with the markdown executable, it works, but is interpreted wrong.

You shouldn't put blocks of code between triple backticks, just indent them with 4 spaces. The backticks are meant for inline code.

EDIT: I overlooked the backtick-block-code plugin. Above is rendered false.

like image 130
Noctua Avatar answered Nov 15 '22 10:11

Noctua