Skip to content

Commit d1cf202

Browse files
committed
Wrap Acorn.
1 parent 1c8540b commit d1cf202

File tree

5 files changed

+334
-344
lines changed

5 files changed

+334
-344
lines changed

README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
# acorn-observable
1+
# notebook-parser
22

33
[![CircleCI](https://circleci.com/gh/observablehq/acorn-observable/tree/master.svg?style=svg&circle-token=c7004fecc8765b1b34f0be42ced4772038eb3910)](https://circleci.com/gh/observablehq/acorn-observable/tree/master)
44

5-
To register and use the plugin:
5+
To parse a cell:
66

77
```js
8-
import acorn from "acorn";
9-
import observable from "acorn-observable";
8+
import {parseCell} from "notebook-parser";
109

11-
observable(acorn);
12-
13-
const cell = acorn.parse(input, {plugins: {observable: true}});
10+
const cell = parseCell(`hello = "world"`);
1411
```
1512

1613
## Examples
@@ -426,7 +423,7 @@ Injecting a view injects both the view symbol (`viewof foo`) and the value symbo
426423

427424
## API Reference
428425

429-
<a href="#acorn_parse" name="acorn_parse">#</a> acorn.<b>parse</b>(<i>input</i>[, <i>options</i>])
426+
<a href="#parseCell" name="parseCell">#</a> <b>parseCell</b>(<i>input</i>[, <i>options</i>])
430427

431428
Returns a [Cell](#cell).
432429

0 commit comments

Comments
 (0)