Skip to content

Commit

Permalink
chore: readme change
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Aug 29, 2024
1 parent 6f5a3e1 commit 60575c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The Diplodoc ecosystem consists of many packages that have similar problems and

## Table of contents

- [AttrsParser](#AttrsParser)

### AttrsParser

### Purpose
Expand All @@ -21,7 +23,7 @@ Support [markdown-it-attrs](https://github.com/arve0/markdown-it-attrs)-like att
```typescript
/*
optional first query
if provided parser will parse it imminently
if provided parser will parse it immediately
each 'parse' call is pure
*/
const attrs = new AttrsParser('{.class #id data-name=diplodoc}');
Expand All @@ -30,6 +32,6 @@ Support [markdown-it-attrs](https://github.com/arve0/markdown-it-attrs)-like att

const other = attrs.parse('{data-wide title="Support quotes too"}')

other /* { attr: ['data-wide'], title: ['Support quotes too'] }
other /* { attr: ['data-wide'], title: ['Support quotes too'] } */
```

0 comments on commit 60575c2

Please sign in to comment.