cidgoh / DataHarmonizer

A standardized browser-based spreadsheet editor and validator that can be run offline and locally, and which includes templates for SARS-CoV-2 and Monkeypox sampling data. This project, created by the Centre for Infectious Disease Genomics and One Health (CIDGOH), at Simon Fraser University, is now an open-source collaboration with contributions from the National Microbiome Data Collaborative (NMDC), the LinkML development team, and others.
MIT License
91 stars 23 forks source link

388 clickable links #405

Closed kennethbruskiewicz closed 8 months ago

kennethbruskiewicz commented 10 months ago

Addresses https://github.com/cidgoh/DataHarmonizer/issues/388, particularly in light of comment https://github.com/cidgoh/DataHarmonizer/issues/388#issuecomment-1500713438 where @pkalita-lbl considered Markdown support.

(Note: as this is my first contribution I'm setting it up as a draft PR, as it may reflect misunderstandings of the codebase.)

Changelog

Further Investigations

kennethbruskiewicz commented 10 months ago

It looks like this issue also appears downstream?

https://github.com/microbiomedata/nmdc-server/issues/945 https://github.com/microbiomedata/nmdc-server/issues/1041 https://github.com/microbiomedata/nmdc-server/issues/820

ddooley commented 10 months ago

I'll be able to help/ do feedback on Wednesday when back from mini vacation. Right now on gabriola Island, no computer! Ciao, d.


From: Kenneth Bruskiewicz @.***> Sent: August 21, 2023 8:55:35 AM To: cidgoh/DataHarmonizer Cc: Damion Dooley; Review requested Subject: Re: [cidgoh/DataHarmonizer] 388 clickable links (PR #405)

It looks like this issue also appears downstream?

microbiomedata/nmdc-server#945https://github.com/microbiomedata/nmdc-server/issues/945 microbiomedata/nmdc-server#1041https://github.com/microbiomedata/nmdc-server/issues/1041 microbiomedata/nmdc-server#820https://github.com/microbiomedata/nmdc-server/issues/820

— Reply to this email directly, view it on GitHubhttps://github.com/cidgoh/DataHarmonizer/pull/405#issuecomment-1686560993, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA6QWRTD2PZYPY7U72UBEYLXWN54JANCNFSM6AAAAAA3YRZKBM. You are receiving this because your review was requested.Message ID: @.***>

pkalita-lbl commented 10 months ago

Just to give some context on the related NMDC issues. This idea did originally in that project, and it would still be beneficial there. However the biggest impetus in that project was actually a component outside of DataHarmonizer where help information from the schema is also displayed. For that work we were really only concerned about linking bare URLs, and we chose to use https://github.com/markdown-it/linkify-it because basic we found simple regex-based approaches to not be robust enough.

The same people who make that package also make a full-blown markdown parser: https://github.com/markdown-it/markdown-it I might suggest looking into that package because it has bare URL linking and takes care of certain security issues by default.