Questions tagged [redcarpet]

Redcarpet is a Ruby library for Markdown processing

Redcarpet is a Ruby library for Markdown processing, written by Vicent Martí. Check the code and docs on its Github page.

136 questions
0
votes
1 answer

Escape html inside code block markdown redcarpet gem rails 4

I've just installed redcarpet gem markdown and all is working fine except, the code block, its not working properly. ```@font-face {
  font-family: 'Glyphicons Halflings';
  src: font- …
0
votes
2 answers

redcarpet markdown - execute javascript code

I am created documentation using tripit/slate. All documentation content is in .md file. slate is using redcarpet markdown engine. Now when I put ``` it…
Valay
  • 1,991
  • 2
  • 43
  • 98
0
votes
0 answers

Markdown not interpolating Ruby variables

I am trying to create a blog in Rails and using Markdown/Jekyll Converter, but getting an error when my markdown files contain references to variables used in my "parse file method" The Parse Method does the following: def parse_file @markdown =…
0
votes
2 answers

Pygments error: no lexer for alias - Underscores in code block

I'm working on a github-pages project with all the usual suspects. I'm trying to switch my markdown from kramdown to redcarpet to better support GFM for local development. I have an existing project that has just one troublesome section of…
0
votes
2 answers

Rails/ERB with Redcarpet: HTML disappearing

If I start rails console and enter: Redcarpet::Markdown.new(Redcarpet::Render::HTML.new).render("line 1 \nline 2").html_safe (Remember in markdown 2 spaces before a line break means a forced line break) I get the expected:

line 1
\nline…

0
votes
1 answer

Extending redcarpet for Jekyll?

I've found this post Jekyll, modify the way some html tags are rendered Which does explain how to extend redcarpet itself. But what else needs to be done in order to get such extension to work? What name does the extension correspond to in the…
Roger Johansson
  • 22,764
  • 18
  • 97
  • 193
0
votes
2 answers

Redcarpet markdown render two different textareas

I think I'm missing something somewhere. I had the renderer working for some time with the original text area (content) and have now added a new column to the model (body). I have added everything and the form works, the views show the body input…
0
votes
1 answer

Redcarpet 3, strong tag with UTF-8 chars

On GitHub, use either the __ or ** to generate strong tag works: 我__愛__你 will generate:

. But in my project (I'm using redcarpet 3.1.1) it's not recognized the strong tag, instead it generates:

我__愛__你

Which…
Juanito Fatas
  • 9,419
  • 9
  • 46
  • 70
0
votes
1 answer

where is a list of markdown tags supported by redcarpet gem

Is there is list of the markdown tags supported by the redcarpet gem? For example, some markdown implementations support centering text, some don't. Rather than trial and error experimentation, it seems like such a popular gem would be documented…
jpw
  • 18,697
  • 25
  • 111
  • 187
0
votes
2 answers

How to Display Brackets Correctly in Code in User Comments?

When a user posts a comment on my site, I run it through a sanitized markdown formatter on the backend and then display it on the site. However, this causes the less-than and greater-than signs (< and >) to come out with their HTML codes (< and…
am-rails
  • 1,463
  • 2
  • 16
  • 40
0
votes
1 answer

Move some markdown data from one markdown file to different

how to parsing markdown to cut off or move some chunks of code from *.md to html with my html template? I have markdown file like this: carrot_soup.md Very nice carrot soup ============ I'd like soup like this: ### Ingredients ### *…
0
votes
1 answer

Redcarpet not generating fenced code block with Jekyll

First off I'm pretty new to Jekyll (and posting on StackOverflow) but I've managed thus far. I had at one point gotten Jekyll to output highlighted code snippets within a fenced block code. Eventually I came back to work on things a while later and…
0
votes
1 answer

Render table in showoff

I'm using showoff for presentations with the default rendering engine (which I believe is redcarpet). However, tables such as the following are not rendered: # Augeas…
raphink
  • 3,625
  • 1
  • 28
  • 39
0
votes
0 answers

RedCarpet string missing

I have a Rails app which includes Redcarpets to process markdown. However, when I write in my article body, it converts nothing. I want to render it to canvas as a string. My code is renderer = Redcarpet::Render::HTML.new(hard_wrap: true,…
eayurt
  • 1,169
  • 1
  • 19
  • 42
0
votes
1 answer

Pygments codeblock formatter adds weird spaces to markdown codeblocks

As in the below picture: To explicitly point out what I'm talking about, I mean the spaces before every ., +, ], |, and =. As well as probably other punctuation that comes up elsewhere. I'm using pygments.rb and the Redcarpet gem to format…
Sasha
  • 6,224
  • 10
  • 55
  • 102
1 2 3
9
10