rubycocos / markdown

markdown tools, libraries & scripts
Creative Commons Zero v1.0 Universal
52 stars 6 forks source link

show_banner option in kramdown_to_html #3

Open joeworkman opened 11 years ago

joeworkman commented 11 years ago

I see that you coded in the ability to not show the banner when kramdown is used. However, I cannot figure out how this is set with the following code...

Markdown.new(markdown).to_html

joeworkman commented 11 years ago

Now that I really compare my output with your banner in the code, I see that is not the issue... I think that it may be kramdown itself that is sending output to the terminal. This is what I am seeing.

Converting Markdown-text (113 bytes) to HTML using library kramdown (1.1.0) using options: {}

joeworkman commented 11 years ago

Nevermind. I see that you intentionally prints the mentioned lines to the terminal. It would be nice if you did not do that.

geraldb commented 11 years ago

Sorry. For now you can configure your markdown engine only in the markdown.yml config file e.g. use / try:

 kramdown:
    banner: false

As a workaround - use Kramdown itself, of course - no need for the Markdown wrapper (if you do NOT intent to change your engine).

Thanks for letting me know about the "Converting Markdown-text (113 bytes) to HTML using library kramdown (1.1.0)" message. This should be configurable too (and probably off by default).