18F / omb-eregs

A tool to find, read, and maintain White House Office of Management and Budget (OMB) policy requirements

Home Page:https://policy-beta.cio.gov/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ensure that no uncited footnotes exist in documents

toolness opened this issue · comments

Discussing with @rtwell earlier this week, it became clear that we can provide a better UX if we simply disallow footnotes without citations.

Currently, the PDF parser allows uncited footnotes, simply adding them as direct children of the topmost policy node. But we should probably change this so it e.g. inserts them as paragraphs instead, or perhaps so it forcibly inserts citations at a relatively appropriate place.

Once we've done that, we should also build this concept into the validation, so e.g. API clients can't submit footnotes without citations.