@markdoc/markdoc 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,7 +53,14 @@ return Markdoc.renderers.react(content, React);
53
53
  Check out [our docs](https://markdoc.dev/docs) for more guidance on how to use Markdoc.
54
54
 
55
55
  ### TypeScript
56
- This is the minimal `tsconfig.json` in order to use Markdoc in your TypeScript project
56
+
57
+ When using TypeScript, install Markdoc with:
58
+
59
+ ```sh
60
+ npm install @markdoc/markdoc @types/react @types/markdown-it
61
+ ```
62
+
63
+ Additionally, this is the minimal `tsconfig.json` required to use Markdoc in your TypeScript project:
57
64
 
58
65
  ```json
59
66
  {
package/dist/index.js CHANGED
@@ -7031,7 +7031,10 @@ function* formatFunction(f) {
7031
7031
  function* trimStart(g) {
7032
7032
  let n;
7033
7033
  do {
7034
- n = g.next().value.trimStart();
7034
+ const { value, done } = g.next();
7035
+ if (done)
7036
+ return;
7037
+ n = value.trimStart();
7035
7038
  } while (!n.length);
7036
7039
  yield n;
7037
7040
  yield* g;
@@ -7120,7 +7123,7 @@ function* formatNode(n, o = {}) {
7120
7123
  yield* formatAnnotations(n);
7121
7124
  yield NL;
7122
7125
  yield indent;
7123
- yield* formatChildren(n, no);
7126
+ yield n.attributes.content;
7124
7127
  yield indent;
7125
7128
  yield "```";
7126
7129
  yield NL;