Skip to content

Commit 9f05b53

Browse files
committed
new idea
1 parent 3c3a7c5 commit 9f05b53

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

packages/docs/src/content/docs/start-here/strategy.md

+26
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,32 @@ add `fsPath` (`public/beoe`) to `.gitignore`
6262

6363
**Note**: if you deploy to Netlify, do not use path that starts with `.`.
6464

65+
### `iframe`
66+
67+
`iframe` is the new idea. **Not implemented**
68+
69+
```html
70+
<figure class="beoe">
71+
<iframe src="/path/to.svg" width="..." height="..." title="..."></iframe>
72+
</figure>
73+
```
74+
75+
**Note**: this strategy requires to additional options:
76+
77+
```js
78+
use(rehypeDiagram, {
79+
strategy: "iframe",
80+
// where to store files on the disk
81+
fsPath: "public/beoe",
82+
// path to files in a browser
83+
webPath: "/beoe",
84+
});
85+
```
86+
87+
add `fsPath` (`public/beoe`) to `.gitignore`
88+
89+
**Note**: if you deploy to Netlify, do not use path that starts with `.`.
90+
6591
## Pros and cons
6692

6793
| | `inline` | `data-url` | `file` | `iframe` (1) |

0 commit comments

Comments
 (0)