Skip to content
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

Any way to only parse certain tags? #65

Open
sean-yeoh opened this issue Sep 8, 2021 · 2 comments
Open

Any way to only parse certain tags? #65

sean-yeoh opened this issue Sep 8, 2021 · 2 comments

Comments

@sean-yeoh
Copy link

Hi, is there any way to only parse certain tags, for example if I want to only parse bc..:

Given an input string:
text = "h5. My Header\r\n\r\nbc.. Hello world\r\n\r\np. Bye world"

I want to get an output like:
RedCloth.new(text).to_html #=> "h5. My Header\r\n\r\n<pre><code>Hello world</code></pre>\r\n\r\nBye world"

@GregThoma
Copy link

Nor really

@GregThoma
Copy link

p>The sun is reportedly hot,1 just like freshly baked potatoes.1 Ice is cold.2

  1. a b Ouch.
  2. a Brrr.
RedCloth 4.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants