-
Notifications
You must be signed in to change notification settings - Fork 128
/
scratch.js
38 lines (33 loc) · 804 Bytes
/
scratch.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import wtf from './src/index.js'
console.log('start')
let str = `hello
{{usableitinerary}}
{{PartOfItinerary|North America itineraries}}
<maplink text="" zoom="5" group="route1" class="no-icon">
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
-117.02964,
32.54259
],
[
-117.03059,
32.54305
]
]
}
}
]
}
</maplink>
`
// let doc = wtf(str)
const doc = await wtf.fetch('https://en.wikivoyage.org/wiki/Interstate_5');
console.log(doc.text());