1
0
Fork 0

Revert "chore: Linting for markdown and js"

This reverts commit 1c92e0f655.
This commit is contained in:
joostdecock 2021-10-17 18:26:00 +02:00
parent 994874fa72
commit cba1ab19c8
6627 changed files with 25791 additions and 24211 deletions

View file

@ -1,13 +1,13 @@
***
## title: Draft
---
title: Draft
---
The `Draft` component renders a FreeSewing pattern in the browser as SVG.
To use the `Draft` component, pass it the result of `pattern.getRenderProps()`
as props:
```js
```js
const renderProps = pattern.draft().getRenderProps()
return <Draft {...renderProps} />
@ -21,12 +21,13 @@ The `pattern.getRenderProps()` returns a range of props, including
an SVG object on which the `preRender` hook gets called prior to
returning.
This way, svg.defs now holds all defs, including any that may have
been added by custom plugins, and we use this verbatim in our
This way, svg.defs now holds all defs, including any that may have
been added by custom plugins, and we use this verbatim in our
React component.
This removes any discrepancies in how SVG rendering and React
rendering handles the defs section of the SVG document,
This removes any discrepancies in how SVG rendering and React
rendering handles the defs section of the SVG document,
and thus displays snippets.
</Note>