GithubHelp home page GithubHelp logo

larryhynes / lowdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kristapsdz/lowdown

0.0 2.0 0.0 613 KB

simple markdown translator

Home Page: https://kristaps.bsd.lv/lowdown

License: ISC License

Makefile 1.33% C 96.04% CSS 2.60% JavaScript 0.03%

lowdown's Introduction

Synopsis

lowdown is a fork of hoedown, although the parser and front-ends have changed significantly.

This is a read-only repository for tracking development of the system. Stable releases are available at the website.

The fork features the following modifications to its predecessor:

  1. Put all header files into one and clean up source layout.
  2. Remove all macro cruft (Microsoft checks and builtins).
  3. Remove all option handling.
  4. Use err(3).
  5. Use pledge(2), Mac OS X's sandbox, or FreeBDS's capsicum(4), if applicable.
  6. Add manpage.
  7. Strip use of externally-defined memory management.
  8. Rename internal API (for brevity).
  9. Prune dead code and de-obfuscate some internal structures.
  10. Create a usable library interface.
  11. Remove "semantic quote" option, as it has no nroff basis.
  12. Remove "emphasis as underline" option, as it has no nroff basis and is confusing on the web.
  13. Have the back-end parser to generate an AST instead of directly rendering.
  14. Several superfluous mechanisms (pools and stacks) removed.
  15. Document language syntax in a manpage.

For the moment, lowdown output is the same as hoedown with the following presets:

  • XHTML mode
  • autolinking
  • fenced code
  • tables
  • superscripts
  • footnotes
  • disabled inline HTML (truly an evil feature of Markdown)
  • "smartypants" enabled

Individual features can be enabled and disabled at will.

The following modifications to the HTML5 output have been made:

  • "smartypants" emits Unicode codepoints instead of HTML entities to make the output XML-friendly
  • emit image dimensions if specified in the link text

The following major feature additions have been added:

  • output mode for troff (via either the -ms or -man package)
  • extension output mode for GNU troff (-mpdfmark, PSPIC, etc.)
  • "smartypants" mode for the troff outputs
  • metadata support
  • tree output for AST debugging
  • "diff" engine for semantic differences between documents

It builds and runs on OpenBSD, Linux (musl and glibc), and Mac OS X.

If you have any comments or patches, please feel free to post them here or notify me by e-mail.

License

All sources use the ISC license. See the LICENSE.md file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.