Questions tagged [rdiscount]

RDiscount is the Ruby binding to Discount, a fast Markdown to HTML processor with many syntax extensions.

More information can be found on the RDiscount project page.

31 questions
2
votes
1 answer

How to enable rdiscount extra markdown 'generate_toc' on Octopress

I tried to make Octopress generate TOC with default markdown parser Rdiscount (2.1.7) by configuring _config.yml, but it didn't work and rake generate failed. I tried answers in RDiscount :generate_toc with Sinatra, but it didn't work for me…
jeromesun14
  • 111
  • 1
  • 6
2
votes
2 answers

RDiscount :generate_toc with Sinatra

So I have sinatra setup with Rdiscount to render a markdown file with a HAML layout. This all works but I want RDiscount to generate a table of contents based on the headers in my haml file. I've tried setting it in the sinatra configuration. set…
Alex
  • 690
  • 1
  • 9
  • 29
1
vote
0 answers

Injecting base directory to RDiscount Markdown conversion

I am using Ruby's RDiscount to convert markdown to HTML. The markdown documents contain links (or images) that are relative to the path of the markdown file itself. Is there a way for me to tell RDiscount that it should prepend all relative links…
DannyB
  • 12,810
  • 5
  • 55
  • 65
1
vote
2 answers

windows ruby install jsduck error

I am trying to install jsduck on ruby gem, however I got error. I've downloaded Ruby 2.3.0(x64). I've also downloaded DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe which is for x64. I installed the ruby 2.3.0(x64). Then I extracted devkit to…
SchemeSonic
  • 376
  • 5
  • 12
1
vote
1 answer

Failed to install github-pages on windows 7 x64

I am trying to build website using Jekyll in Github Pages, I have issues installing github-pages gem in my local machine Windows 7 x64 Enterprise version. Here is the steps I took: * installed ruby 2.1.7 32bit at c:\Ruby21\ (file…
Henry
  • 384
  • 1
  • 9
  • 22
1
vote
0 answers

Nested footnotes with Octopress

Which, if any, octopress plugins support nested footnotes? The default install uses rdiscount, which doesn't support footnotes that have footnotes. If nothing has direct support, I may try using pandoc to convert TeX to markdown. That seems a bit…
dan
  • 4,262
  • 7
  • 25
  • 40
1
vote
1 answer

rdiscount enable parsing markdown within block html?

Is there any global option for rdiscount to enable parsing markdown in block html tags? And any way to use that option within Octopress/Jekyll? This is the option that Kramdown supports: parse_block_html Process kramdown syntax in block HTML tags…
justingordon
  • 12,553
  • 12
  • 72
  • 116
1
vote
1 answer

rdiscount "ERROR: Failed to build gem native extension."

This is interesting. I had rdiscount working within one rvm gemset, but when I tried to add it to another, I would get ERROR: Failed to build gem native extension. So I tried removing it from the original gemset and re-installing it only to get the…
1
vote
1 answer

Error Heroku with rdiscount gem

I used the rdiscount gem for something i thought I might needed it but then I unistalled it. When I tried to deploy the app on Heroku I get the following: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. …
PericlesTheo
  • 2,429
  • 2
  • 19
  • 31
1
vote
2 answers

Error install rdiscount in windows 7

I am trying to install rdiscount gem but encountered the following error. How can I install rdiscount in windows 7? C:\>gem install rdiscount --platform=ruby Temporarily enhancing PATH to include DevKit... Building native extensions. This could…
stanicmail
  • 743
  • 7
  • 19
1
vote
1 answer

jekyll not generating _posts

I'm have trouble getting jekyll to convert a post in _posts directory to html. It generates index.md correctly, but doesn't generate anything for posts. When I add 'source: _posts' then it converts the post, but doesn't convert index.md. As far as I…
Shahbaz
  • 10,395
  • 21
  • 54
  • 83
0
votes
0 answers

Ordered list changes to unordered list in rDiscount with Octopress

I had been struggling to understand why rDiscount would render my markdown as such .. my original intention was to render the following: list one ordered list two ordered list three ordered unordered sub-first list unordered sub-second list list…
Shritam Bhowmick
  • 297
  • 1
  • 2
  • 10
0
votes
1 answer

Fix Extra Line Numbering in rDiscount Parser on using Octopress

I am trying to figure out how do I disable rdiscount parser to add an extra line to me codeblocks using octopress as a platform and Jekyll as the static site generator. I have attached the code in the image below and the left pane shows an extra…
Shritam Bhowmick
  • 297
  • 1
  • 2
  • 10
0
votes
2 answers

Find every file in a directory and render them all using rdiscount

I've got a directory called "posts" which is filled with .md files. Right now rdiscount renders only one file (one.md), then puts the product into a variable (@content). Because this is done issuing... @content = markdown(:one) ...I'm really…
user3094719
  • 297
  • 4
  • 16
0
votes
2 answers

failing to install rdiscount-2.1.6

I tried to install octopress following the documentation and got this error during the process. (after 'bundle install') Tried to manually reinstall it with no success. Installing rdiscount (2.0.7.3) Gem::Installer::ExtensionBuildError: ERROR:…
vale
  • 1,376
  • 11
  • 25