overstory / marklogic-intellij-plugin

Plugin to support XQuery + MarkLogic debugging in Intellij Idea
Apache License 2.0
12 stars 2 forks source link

Documentation Extractor does not fully filter out JavaScript document snippets #38

Closed ronhitchens closed 6 years ago

ronhitchens commented 7 years ago

The code that scrapes the API docs out of the MarkLogic documentation bundle is not excluding all the JavaScript variants embedded within text. This is resulting in duplicate parameters and references in the text. Most notably the doc page for xdmp:eval().

It also appears that at least some XML examples are not being preserved properly.

Low priority but needs to be fixed for launch.

ronhitchens commented 7 years ago

This is fixed and pushed. Updated the extractor code that pulls the API docs out of the MarkLogic docs bundle to drop any element that has the "class" attribute set, but is not equal to xquery. Changed the Quick Docs HTML generation to re-escape markup chars (&, < and >) when parsing the XML for a function so that the HTML renders properly.

ronhitchens commented 6 years ago

This was addressed in version 0.9.0-beta