Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #190

Merged
merged 45 commits into from
Sep 24, 2018
Merged

Dev #190

merged 45 commits into from
Sep 24, 2018

Conversation

spencermountain
Copy link
Owner

@spencermountain spencermountain commented Sep 24, 2018

6.0.0 🚨

some refactoring to support paragraphs, and better-handling of citations. mostly v5-compatible, but some breaking result-format changes

  • support .paragraphs()
  • ⚠️ major changes to output of .json(). cleaning-up redundant data.:warning:
    • remove top-level templates data (found in section) - resume it with {templates:true}
    • remove top-level coordinates data (found in templates) - resume it with {coordinates:true}
    • remove top-level citations data (found in section) - resume it with {citations:true}
  • return empty arrays in .json() again ¯_(:/)_ /¯
  • remove <h1> title on html output
  • change ambiguous options.title for sections to options.headers
  • support lists of 1
  • begin removing empty references section by default
  • begin support for rendering citations at the bottom of documents
  • begin first-class references-parsing as objects at paragraph-level
    • use this: .citations() --> .citations().map(c => c.json());
  • remove .wikitext() and .reparse() methods - keeping wikitext stateful caused too many issues
  • turn Image.file into a function
  • include interwiki() results in .links()
  • support follow_redirects option to fetch
  • hide object data in console.logs
  • move ALL image urls from upload.wikimedia.org/wikipedia/commons to wikipedia.org/wiki/Special:Redirect/file/ via redirects in image url paths #86
  • image captions are now Sentence objects
  • rename citation → reference internally, and in json output
  • remove references inside section titles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant