Skip to content

Commit 86199f0

Browse files
committed
Add first repo readme
1 parent ab415e9 commit 86199f0

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# annotation-comments
2+
3+
> **Warning**: ⚠ This repository has just been made public and is still a work in progress. The documentation and code quality will be improved in the near future.
4+
>
5+
> As the API has not been finalized yet, we recommend waiting until this notice has been removed before attempting to use this package or contributing to it.
6+
7+
This library provides functionality to parse and extract annotation comments from code snippets.
8+
9+
Annotation comments allow authors to annotate pieces of source code with additional information (e.g. marking important lines, highlighting changes, adding notes, and more) while keeping it readable and functional:
10+
11+
````mdx ignore-tags
12+
```js
13+
// [!note] The note explains the `console.log(...)` line
14+
console.log('Some code');
15+
// The next line will be marked as inserted
16+
newCode(); // [!ins]
17+
```
18+
````
19+
20+
While this library was originally developed for the documentation tool [Expressive Code](https://expressive-code.com), the annotation comment syntax is designed to be compatible with Shiki's common transformer syntax and extend its functionality. It was intentionally decoupled from Expressive Code to allow other tools to use it as well.
21+
22+
## When should I use this?
23+
24+
Using this package directly is only recommended if you are building a custom documentation tool or want to integrate annotation comments into your own workflow.
25+
26+
If you are looking for a ready-to-use solution that uses this package to support annotation comments in code snippets, check out [Expressive Code](https://expressive-code.com) instead.
27+
28+
## Installation, Usage & API
29+
30+
For installation instructions, usage examples, and the full API documentation of the main library package, please refer to the [package's README](packages/annotation-comments/README.md).

0 commit comments

Comments
 (0)