Skip to content

krrrr38/halty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Text-to-HTML converter with Halty syntax.

Resources

License

Stars

Watchers

Forks

Packages

No packages published