-
Notifications
You must be signed in to change notification settings - Fork 352
Added the :fenced_code Hoedown option. #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks like the execution permission bit is being set for the changed files. |
|
@ericmj Fixed! Thanks for noticing this mistake, definitively I need to review my |
|
Honestly, I don't want to support fenced code because it is not part of the markdown "spec" (afaik). Unless we are sure all markdown processors (at least the three we support) handle it, I would avoid adding specific behaviour. |
|
All three markdown engines support fenced code blocks. @milmazz Can you make sure that it's enabled for all of them? |
|
Thanks @ericmj. Then it is also worth debating if we want to starting allowing fenced code blocks in Elixir documentation. I personally find them a hack and unreadable. :( |
|
I think it's worth the hack since it seems to be the only way to highlight other languages. We don't even have a way to disable the elixir highlighting right now. |
|
Big 👍 for fenced code blocks, I actually find them extremely more readable than 4-spaces indentation. Also, I'd love to be able to specify the language to highlight; as of now, gettext documentation is full of PO file snippets highlighted as Elixir :(. |
|
@ericmj Perfect, I'll include the fenced code blocks option for the others Markdown parser. |
|
Adding my vote to allow fenced code blocks. From my personal preference I think they are much more readable, especially when you have indented code inside the code block itself and from an objective standpoint as they are the only way to specify the language. |
|
Then we also need to support fenced blocks on IO.ANSI.Docs (which is what elixir uses for formatting markdown inside iex). |
|
I already added the |
|
According to this page I've looked for more information about the CI environment OS provided by Travis and I found that they use Ubuntu 12.04 LTS Server Edition 64 bit. Also, I found that the version of the pandoc package for Ubuntu 12.04 is 1.9.1.1-1. So, that's why this feature does not work in this environment. The option that I prefer is proceed to modify the P.S. I've run the tests on Debian 8.0 and everything run smoothly. |
|
Installing a newer pandoc manually does sound like the best solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
@josevalim Are we good to ship this now? |
|
👍 |
|
🎉 🎈 |
This includes the following: * Add the `:fenced_code` for the Hoedown parser * Add the `fenced_code_blocks` extension for Pandoc * Manually install `pandoc` v1.13.2 via `.travis.yml` As a side note, in the case of the Earmark parser the support for fenced code blocks is already included.
|
@ericmj Please let me know is the latest commit fulfill your suggestions. @josevalim @ericmj @dignifiedquire @whatyouhide Thanks for your support! |
|
Perfect! Will merge after CI. |
Added the :fenced_code Hoedown option.
Changes proposed by @dignifiedquire in his
designbranch.