Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
/ marc-cup Public archive

A lua parser for a custom markup language

License

Notifications You must be signed in to change notification settings

cafehaine/marc-cup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Unmaintained project!

I might take another stab at this, but at the moment I no longer plan on developing this.

Marc-Cup

What is Marc-Cup

Marc-Cup is a lua parser for a simple custom markup language.

I will use this library as a way to render my blog articles, so the features will mostly only suit my needs, but if you have an idea on how to improve the parser and/or features, feel free to create an issue for it!

Features and syntax

  • Paragraphs, separated by an empty line
  • Titles, using the markdown #, ##, … syntax for the different levels
  • Inline code, using the markdown syntax `inline code`, with \ to escape backticks (and only backticks)
  • Block of code, using something close to the markdown syntax, allowing to add numbers to the lines. Note that those have to be on an independant paragraph (surounded by empty lines).
```language:starting_line
code
code
```
  • Links, using the markdown [description](url) syntax
  • Emphasis, with brackets, allowing nested emphases {like {this}.}

Why Marc-Cup

Marc is the french word for coffee grounds. Since my username has coffee in it, and it sounds like markup, I figured Marc-Cup would be an okay pun.

About

A lua parser for a custom markup language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages