Refactor content rendering
Currently, the Software Heritage web application enables to render the following content types:
- highlighted code
- image files
- pdf files
In addition, README files written in:
- markdown
- reStructuredText
- Org mode are also rendered to HTML.
As the archive content grows, we would like to support more content type to render (see !96 (closed) for instance).
This calls for a refactoring of the content rendering code, in the client part of the application, in favor of a more modular implementation. Proceeding like this will facilitate the integration of new content type rendering.
Migrated from T1688 (view on Phabricator)