https://github.com/passcod/i-kdl
Inline-KDL Embedded Document Language
https://github.com/passcod/i-kdl
Last synced: 11 months ago
JSON representation
Inline-KDL Embedded Document Language
- Host: GitHub
- URL: https://github.com/passcod/i-kdl
- Owner: passcod
- License: other
- Created: 2021-03-06T07:53:39.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-06T12:13:20.000Z (almost 5 years ago)
- Last Synced: 2024-10-05T16:22:24.150Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Inline KDL
[](https://crates.io/crates/i-kdl)
[][license]
[][caretaker]
[KDL](https://github.com/kdl-org/kdl) is a document language with xml-like
semantics that looks like you're invoking a bunch of CLI commands!
[Inline KDL](https://github.com/passcod/i-kdl) (short: i-kdl, extension: ikdl,
pronounced: i cuddle) is an extension of KDL where KDL fragments can be embedded
in a larger text document.
i-kdl uses `<` and `>` to indicate a KDL fragment. An i-kdl document is a list
of zero or more Texts interspersed with zero or more Nodes.
- [API documentation][docs]
- Licensed with [Parity 7.0.0][license]
- Uses [Caretaker Maintainership][caretaker]
- Supported Rust version: latest stable
[caretaker]: ./CARETAKERS.md
[docs]: https://docs.rs/i-kdl
[license]: ./LICENSE.md
## Examples
Simple:
```ikdl
Hic voluptatem eum et repudiandae nisi cum qui sed. Voluptatum molestiae recusa
quod quas
suscipit reprehenderit eos commodi. Dolores earum iste tempore culpa ut nostrum.
```
Can span multiple lines (remembering to use KDL line continuations where appropriate):
```ikdl
Inflection of quī (“who, which”), Proto-Indo-European *kʷod, whence also .
```
KDL fragment can contain `<>` in strings etc.
```ikdl
i-kdl uses and "> to indicate a KDL fragment.
```
You can escape a `<` in text with `\\`:
```ikdl
Escaping \< is possible: .
```
## License
The code in this repository is covered by [the Parity License](LICENSE.md), a
strong copyleft license. That means that you can only use this project if
you're working on an open source-licensed product (MIT/Apache projects are
ok!)