Sha256: 8d0069fb5d4c6e68519ec42c19e0105f00f8924116d25af461f82fd16f2a5884
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
require 'nora_mark' require 'nokogiri' require 'optparse' require 'kconv' auto_convert_encode = false opt = OptionParser.new opt.on('--kconv') { auto_convert_encode = true } args = opt.parse(ARGV) input = ARGF.read input = Kconv.toutf8(input) if auto_convert_encode NoraMark::Extensions.register_generator(:htmlbook) puts Nokogiri::XML(NoraMark::Document::parse(input).htmlbook, &:noblanks).to_xml
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nora_mark_htmlbook-0.0.2 | bin/nora2htmlbook |
nora_mark_htmlbook-0.0.1 | bin/nora2htmlbook |