krrrr38 / halty   0.1.3

MIT License Website GitHub

Text-to-HTML converter with Halty syntax.

Scala versions: 2.11 2.10

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