GithubHelp home page GithubHelp logo

mdl's Introduction

MDL - Mortoray's Document Language

My multi-purpose markdown language. MDL combines a document language, similar to markdown, with a structured header language, similar to YAML.

I use this tool on a day-to-day basis for my own work. It is fairly stable, though I can't guarantee I won't add anything that changes the formatting, or accepts a new syntax. As I use it on more sites, it becomes ever more stable.

Follow the development at mortoray.com or follow me on Mastadon

I actively use this generator/parser for:

  • Edaqa's Kitchen: Healthy modern recipes. I use it for the text part of recipes.
  • Edaqa's Room: Online escape rooms. I use MCL for the primary game script as well as the document language for the grimoire.
  • Musing Mortoray: Technical Blog. I'm using the document language to write articles and publish in multiple formats.

Running

There is an entry point defined on the module that that reads MDL files and emits either HTML or Markdown.

python -m mdl --help

Example:

python -m mdl README.mdl --write markdown README.md

Be aware that not all emitters will support all of the doc-tree at any given time. It's all in flux now.

Python 3.10

NOTE: Uncertain if this is still needed/up-to-date

sudo apt install python3.10-distutils python3.10-dev

mdl's People

Contributors

mortoray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mdl's Issues

Idea

if perhaps:

e=self.output.write

then perhaps code could fit 80 lines.
By enabling the linter, one would get nice linting, which might be a thing someone might one.

def _write_list( self, node ):

Italics don't work with spaces

The log/3 didn't format correctly on dev.to due to trailing spaces on the user portrait paragraph. Markdown italics endings must come immediately after the text to be recognized.

This is related to stripping and normalizing spaces.

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.