NullEnt1ty / gmod-wiki-scraper

Extract GLua API documentation from the new Garry's Mod wiki
https://www.npmjs.com/package/gmod-wiki-scraper
MIT License
9 stars 1 forks source link

<warning>, <note> and other elements are stripped from descriptions #9

Closed NullEnt1ty closed 4 years ago

NullEnt1ty commented 4 years ago

Many pages use elements like <warning> or <note> to highlight important information. Currently the description of a page is extracted by calling the method Cheerio.text() which will drop any child elements from the selected element. This is obviously not an ideal behavior and should be changed.