1
0
Fork
You've already forked markr
0
No description
  • Rust 95.4%
  • Nix 4.6%
Find a file
2026年07月14日 14:20:27 -04:00
src woahg 2026年07月14日 13:36:52 -04:00
.envrc Initial commit 2026年07月14日 03:59:46 -04:00
.gitignore Initial commit 2026年07月14日 03:59:46 -04:00
Cargo.toml Initial commit 2026年07月14日 03:59:46 -04:00
README.md awa 2026年07月14日 14:20:27 -04:00
shell.nix Initial commit 2026年07月14日 03:59:46 -04:00

Markright

An explicit and extensible (削除) markup (削除ここまで) (削除) markdown (削除ここまで) markright language. File extension mkr.

How It Works

There are 4 kinds of rules:

  • Replacement rules, such as |img<https://aurakle.dev/button.png>|
  • Inline rules, such as |i{your text, in italic} or |i|b{your text, in italic AND bold}
  • Line rules, such as |ignore: this is a comment
  • And finally, block rules such as
|code<css>[
nav a {
 color: red;
}
]end|

For example, the following represents an ordered list with 3 elements, where each element is numbered 1-3:

|list<123>[
- Hi! I'm the first element! Block rules receive their entire interior text, allowing them to do funny things like treat every line starting with a dash and a space as a new list element!
- Heyo, I'm the second element! The "123" property of the list rule tells it that lists elements should be ordered using numbers.
- Oy, I'm the third element. If you exclude the argument to the list rule, the list will be unordered!
]end|