Skip to content

Commit

Permalink
update docs with read_string function
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-ji committed Aug 14, 2024
1 parent d6ba9cc commit 18cdc4c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ import mdocfile
df = mdocfile.read('my_mdoc_file.mdoc')
```

`mdocfile.read_string()` will read mdoc file data stored in a string

```python

import mdocfile

df = mdocfile.read_string('...mdoc string data...')
```

For writing valid mdoc files, please see
[writing mdoc files](https://teamtomo.org/mdocfile/writing/).

Expand Down
9 changes: 9 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ import mdocfile
df = mdocfile.read('my_mdoc_file.mdoc')
```

`mdocfile.read_string()` will read mdoc file data stored in a string

```python

import mdocfile

df = mdocfile.read_string('...mdoc string data...')
```

---

For writing valid mdoc files, please see [writing mdoc files](./writing.md).
Expand Down

0 comments on commit 18cdc4c

Please sign in to comment.