hagenburger / pimd

PIMD – Processing Instructions for Markdown
https://hagenburger.github.io/pimd-docs/
MIT License
20 stars 5 forks source link

Introduce info string commands #56

Closed hagenburger closed 5 years ago

hagenburger commented 5 years ago

This prepares an API to create #19, #18, and #32. All those features will have very complex regular expressions and escaping. Therefore an API preparing those regular expressions and testing them centrally makes sense.

``` +commandname
``` +commandname=parameter
``` +commandname=parameter1,parameter2,parameter3

Every command in info strings consists out of:

  1. +
  2. Name of the command
  3. = (optional)
  4. A parameter (regexp, string, number, boolean, or null; optional)
  5. more paraters (comma-separated; optional)

Examples: See #19, #18, and #32

benevbright commented 5 years ago

Nice work! Have seen briefly, but will look more tomorrow.