Skip to content

Converts Markdown (CommonMark) to Lorcode markup using Pandoc

License

Notifications You must be signed in to change notification settings

smaximov/lordown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lordown

Convert Markdown (CommonMark) to Lorcode markup using Pandoc. Supports CommonMark with some additions:

  • headers of any level are converted to [strong]text[/strong];
  • use SO mention/notify syntax @maxcom to produce [user]maxcom[/user].

Installation

You should have Stack installed.

# Cloning the repo
git clone https://github.com/smaximov/lordown.git
cd lordown
# Setup Stack project
stack setup
# Build
stack build
# Install lorcode binary to ~/.local/bin (use --local-bin-path to specify target directory)
stack install

Usage

lordown provides both a library and an executable.

Executable

lordown -h:

lordown v0.1.1.0 - Markdown to Lorcode converter
Reads Markdown from standard input and writes converted markup to standard output

Usage: lordown

Options:
  -h  --help     Show this message
  -v  --version  Display version

As a library

import Text.Pandoc.Lordown (convert)

main :: IO ()
main = interact convert

About

Converts Markdown (CommonMark) to Lorcode markup using Pandoc

Resources

License

Stars

Watchers

Forks

Packages

No packages published