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

Should the .config settings be "sticky"? #42

Closed
jgn opened this issue Jan 25, 2015 · 2 comments
Closed

Should the .config settings be "sticky"? #42

jgn opened this issue Jan 25, 2015 · 2 comments

Comments

@jgn
Copy link

jgn commented Jan 25, 2015

require 'reverse_markdown'

ReverseMarkdown.config do |config|
  config.unknown_tags     = :bypass
  config.github_flavored  = true
end
p ReverseMarkdown.convert("<pre>a = 5</pre>")
p ReverseMarkdown.convert("<pre>a = 5</pre>")

Produces this output:

"```\na = 5\n```\n"
"    a = 5\n\n"

Only the first one is fenced.

It strikes me that the .config settings should be sticky until changed.

@xijo
Copy link
Owner

xijo commented Jan 25, 2015

Thanks for reporting, I'll take a look at it.

@xijo xijo closed this as completed in 4b7019d Jan 25, 2015
@xijo
Copy link
Owner

xijo commented Jan 25, 2015

Thanks again @jgn - I release 0.6.1 to fix this issue.

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