Open philippconzett opened 2 years ago
Do you want the markdown rendered or just displayed as text? The latter should be trivial
Sent from my phone
On Thu, Nov 4, 2021, 04:09 Philipp Conzett @.***> wrote:
As a potential dataset downloader, I'd like to be able to preview more media types, in particular the following ones:
image/tiff audio/flac text/markdown text/semicolon-separated-values
Note on text/semicolon-separated-values: When testing in the Harvard Demo Dataverse, semicolon-separated .csv files are not ingested and previewed. Semicolon-separated .txt files are not ingested, but previewed as plain text files. See this test dataset:
https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/H0U0FQ
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GlobalDataverseCommunityConsortium/dataverse-previewers/issues/64, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7PWX7FQUCB7K4XCMUGNTUKI5UJANCNFSM5HK2KAOA .
Yes, that would be good. If it at a later stage will be possible to be displayed as Markdown, that would be even better :)
For Markdown, perhaps something like marked could be used for rendering?
I did a quick test, and Markdown files should work as-is in the text previewer (but are not rendered), e.g.:
It would be cool so have some sort of toggle to switch between raw text and rendered HTML but this is a great start!
As a potential dataset downloader, I'd like to be able to preview more media types, in particular the following ones:
image/tiff audio/flac text/markdown text/semicolon-separated-values
Note on text/semicolon-separated-values: When testing in the Harvard Demo Dataverse, semicolon-separated .csv files are not ingested and previewed. Semicolon-separated .txt files are not ingested, but previewed as plain text files. See this test dataset: https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/H0U0FQ