dogfen 2026.1010.0 → 2026.1011.0

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
@@ -16,7 +16,25 @@ Add the below oneliner to an existing markdown document:
16
16
  |cell 1 | cell 2 |
17
17
  ```
18
18
 
19
- see [demo](https://gh.dayl.in/dogfen/demo.html)
19
+ or start writing a [new](https://dogfen.dayl.in/new) one!
20
+
21
+ See a [demo](https://dogfen.dayl.in/demo) of (some) of the supported syntax.
22
+
23
+ ## fetch from a url
24
+
25
+ Use a query parameter to override any existing textarea with raw text data fetched from a url:
26
+
27
+ Example: <https://dogfen.dayl.in/?read-only&href=https://raw.githubusercontent.com/daylinmorgan/dogfen/refs/heads/main/README.md>
28
+
29
+ Note: this link also includes the `read-only` query parameter.
30
+
31
+ ## shareable url
32
+
33
+ It's also possible to generate shareable urls:
34
+
35
+ Example: <https://dogfen.dayl.in?read-only&raw#BYUwNmD2AEDukCcwBMg>
36
+
37
+ Note: this has the typical caveats of embedding data in a url, i.e. for big documents host the data at a public link and use `?href=`
20
38
 
21
39
  ## converter
22
40
 
@@ -25,7 +43,7 @@ You could define a shell helper function to quickly convert a markdown doc to a
25
43
  ```sh
26
44
  md2dogfen() {
27
45
  printf "%s\n\n%s\n" \
28
- '<!DOCTYPE html><html><body><script src="https://unpkg.dev/dogfen"></script><textarea style="display:none;">' \
46
+ '<!DOCTYPE html><script src=https://unpkg.dev/dogfen></script><textarea style=display:none>' \
29
47
  "$(< "$1")"
30
48
  }
31
49
  ```