markdown icon indicating copy to clipboard operation
markdown copied to clipboard

show_banner option in kramdown_to_html

Open joeworkman opened this issue 12 years ago • 3 comments

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 avatar Aug 14 '13 18:08 joeworkman

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 avatar Aug 14 '13 18:08 joeworkman

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

joeworkman avatar Aug 14 '13 18:08 joeworkman

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).

geraldb avatar Aug 15 '13 12:08 geraldb