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

RedCloth trick that can be used on textilize_without_paragraph #1

Open
MingjiaNi opened this issue Apr 6, 2017 · 0 comments
Open

Comments

@MingjiaNi
Copy link

MingjiaNi commented Apr 6, 2017

I am not sure if this works on this particular version of RedCloth but we can do:

def textilize_without_paragraph(text, *options)
  textilize(" #{text}", *options)
end

Might have better performance.

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

1 participant