-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #556 from spencermountain/dev
Dev
- Loading branch information
Showing
10 changed files
with
64 additions
and
25 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,38 @@ | ||
import wtf from './src/index.js' | ||
import plg from './plugins/i18n/src/index.js' | ||
wtf.plugin(plg) | ||
console.log('start') | ||
|
||
let str = `#AANSTUUR[[Xai-Xai]] | ||
` | ||
// let str = ` {{font|text=也可以只選用其中一項選項。|size=25px}} ` | ||
let doc = wtf(str) | ||
console.log(doc.text()) | ||
// doc.templates().map((s) => s.json()) | ||
// console.log(doc.templates()[4].json()) | ||
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 | ||
] | ||
// let doc = await wtf.fetch("Space_disco", "it") | ||
// console.log(doc.text()) | ||
// trunc | ||
// wtf.fetch("2007 FIFA Women's World Cup Group A", "en") | ||
] | ||
} | ||
} | ||
] | ||
} | ||
// fails on percentage template | ||
// wtf.fetch("Sacramento Mountain Lions", "es") | ||
</maplink> | ||
` | ||
// let doc = wtf(str) | ||
const doc = await wtf.fetch('https://en.wikivoyage.org/wiki/Interstate_5'); | ||
|
||
// fails on min template | ||
// wtf.fetch("Phase finale du Championnat du monde masculin de handball 2019", "fr") | ||
console.log(doc.text()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default '10.1.6' | ||
export default '10.1.7' |