aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4d297c7..e155b05 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,31 @@
1# Dumbymap
2
3This library generate web maps from Semantic HTML, see [demo page](https://outdoorsafetylab.github.io/dumbymap/)
4
5## Getting Started
6
7Node.js:
8
9```bash
10npm install dumbymap
11```
12```js
13import { markdown2HTML, generateMaps } from 'dumbymap'
14
15// Create container element
16const container = document.createElement('div')
17document.body.append(container)
18
19// Convert markdown text into Semantic HTML
20markdown2HTML(container, '# Heading\n\n```map\nid: foo\nuse: Maplibre\n```\n')
21
22// Gernerate maps from code block
23generateMaps(container)
24```
25
26browser (CDN):
27- [unpkg](https://unpkg.com/dumbymap@0.1.1/dist/dumbymap.mjs)
28
1## TODOs 29## TODOs
2 30
3- Editor 31- Editor