File tree 1 file changed +26
-0
lines changed
packages/docs/src/content/docs/start-here
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,32 @@ add `fsPath` (`public/beoe`) to `.gitignore`
62
62
63
63
** Note** : if you deploy to Netlify, do not use path that starts with ` . ` .
64
64
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
+
65
91
## Pros and cons
66
92
67
93
| | ` inline ` | ` data-url ` | ` file ` | ` iframe ` (1) |
You can’t perform that action at this time.
0 commit comments