orz-mdhtml-browser 0.1.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 +21 -0
- package/orzmd.browser.js +326 -0
- package/package.json +26 -0
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# orz-mdhtml-browser
|
|
2
|
+
|
|
3
|
+
Prebuilt **in-browser renderer** for [orz-mdhtml](https://github.com/wangyu16/orz-mdhtml)
|
|
4
|
+
`.md.html` files. It bundles [orz-markdown](https://www.npmjs.com/package/orz-markdown)
|
|
5
|
+
for the browser and exposes `window.orzmd.render(markdown)`.
|
|
6
|
+
|
|
7
|
+
This package exists to be served over a CDN. Generated `.md.html` files in
|
|
8
|
+
`--cdn` mode reference it from jsDelivr, so the renderer is fetched from the web
|
|
9
|
+
on first open and browser-cached:
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<script src="https://cdn.jsdelivr.net/npm/orz-mdhtml-browser@<version>/orzmd.browser.js"></script>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
It is produced from `orz-mdhtml`'s `build/bundle.ts` and versioned in lockstep
|
|
16
|
+
with `orz-mdhtml`. You normally don't depend on it directly — generate files
|
|
17
|
+
with the `orz-mdhtml` CLI.
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
MIT
|