Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

Support a known whitelist of DTD versions #22

Closed darrensiegel closed 2 years ago

darrensiegel commented 2 years ago

We need to change the digest tool to only process a known collection of DTD versions. When a file is encountered that utilizes a version that we do not support, a warning should be generated (but the rest of the conversion process should continue)

In src/resources/create.ts, function determineResourceType takes the contents of a file, identifies the DOCTYPE root element, and then parses/inspects that content to determine the type of resource.