Giter VIP home page Giter VIP logo

markdown's People

Contributors

bmontgomery avatar geraldb avatar joeworkman avatar step1profit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

markdown's Issues

File Exists error when specifying output path

Hi there,

When I generate markdown with a specified output path:

markdown README.TXT -o /some/path/readme.erb

...and the target file exists, I get the following error:

/home/user/.rvm/rubies/ruby-2.1.5/lib64/ruby/2.1.0/fileutils.rb:250:in `mkdir': File exists @ dir_s_mkdir - /some/path/readme.erb (Errno::EEXIST)
    from /home/user/.rvm/rubies/ruby-2.1.5/lib64/ruby/2.1.0/fileutils.rb:250:in `fu_mkdir'
    from /home/user/.rvm/rubies/ruby-2.1.5/lib64/ruby/2.1.0/fileutils.rb:224:in `block (2 levels) in mkdir_p'
    ...<snip>...

I understand where this comes from, but I would prefer that the target file gets overwritten automatically.

Is it possible to adjust the default behavior so that the 'File exists' error does not occur?
As an alternative, perhaps add a force-option to suppress the error, eg:

markdown README.TXT -f -o /some/path/readme.erb

Thanks,

Wim.

show_banner option in kramdown_to_html

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.