Text-to-HTML converter with Halty syntax.
Halty syntax is based on Hatena syntax.
libraryDependencies += "com.krrrr38" %% "halty" % "0.1.3"
or
resolvers += Opts.resolver.sonatypeSnapshots
libraryDependencies += "com.krrrr38" %% "halty" % "0.1.4-SNAPSHOT"
val input =
"""
|* h3 header
|text
|
|>https://github.com/krrrr38/halty>
|cite from halty - github
|<<
|
|- LIST
|-- https://github.com/krrrr38/halty
|-- [https://github.com/krrrr38/halty]
|-- [https://github.com/krrrr38/halty:title]
|-- [https://github.com/krrrr38/halty:title=foo]
|
|:dt:dd
|
||table|table|
||100|200|
|
|>|scala|
|case class Person(name: String)
|||<
""".stripMargin
val ast = Halty(input)
XHTMLGenerator.generate(ast) # generate xhtml
MarkdownGenerator.generate(ast) # generate markdown
- Fork (https://github.com/krrrr38/halty/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the target version branch
- Run test suite with the
sbt test
command and confirm that it passes - Create new Pull Request