GithubHelp home page GithubHelp logo

hatenablog-writer's People

Contributors

kymmt90 avatar ongaeshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ongaeshi

hatenablog-writer's Issues

contentに'<'が含まれるとエラー

文章内に<が含まれた記事を投稿しようとするとエラーになるようです。

以下のようなシェルの実行ログをトリプルダッシュで囲んで記事に書こうとすると<が含まれてしまうことがあり困っています。

foo.md

Failed test

<txt

実行例

$ bundle exec hw foo.md 
bundler: failed to load command: hw (hw)
NoMethodError: undefined method `[]' for nil:NilClass
  /opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/entry.rb:85:in `parse_document'
  /opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/entry.rb:81:in `initialize'
  /opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/entry.rb:11:in `new'
  /opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/entry.rb:11:in `load_xml'
  /opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/client.rb:94:in `post_entry'
  /Users/ongaeshi/Documents/hatenablog-writer/hb_writer.rb:15:in `post_entry'
  hw:49:in `block (3 levels) in <top (required)>'
  /opt/local/lib/ruby2.3/2.3.0/open-uri.rb:37:in `open'
  /opt/local/lib/ruby2.3/2.3.0/open-uri.rb:37:in `open'
  hw:40:in `block (2 levels) in <top (required)>'
  hw:38:in `each'
  hw:38:in `block in <top (required)>'
  /Users/ongaeshi/Documents/hatenablog-writer/hb_writer.rb:7:in `initialize'
  hw:37:in `new'
  hw:37:in `<top (required)>'

&lt;などを使えば動くようです。

Failed test
<!-- 10328749687177110674 -->
&lt;txt

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.