Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 2.18 KB

README.md

File metadata and controls

71 lines (57 loc) · 2.18 KB

Halty

Build Status codecov.io Codacy Badge Maven Central 2.11.x Maven Central 2.10.x License: MIT

Text-to-HTML converter with Halty syntax.

Halty syntax is based on Hatena syntax.

Usage

libraryDependencies += "com.krrrr38" %% "halty" % "0.1.3"

or

resolvers += Opts.resolver.sonatypeSnapshots

libraryDependencies += "com.krrrr38" %% "halty" % "0.1.4-SNAPSHOT"

Synopsys

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

Contribution

  1. Fork (https://github.com/krrrr38/halty/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the target version branch
  5. Run test suite with the sbt test command and confirm that it passes
  6. Create new Pull Request

Author

krrrr38