Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Specialization in addition to Markdown? #158

Open
photocyte opened this issue Aug 26, 2022 · 2 comments
Open

HTML Specialization in addition to Markdown? #158

photocyte opened this issue Aug 26, 2022 · 2 comments

Comments

@photocyte
Copy link
Member

I understand Markdown is a simple target for simple linear protocols, but for more complex protocols, would HTML not be a better target?

Every computer user has a default HTML renderer installed with their web browser (not the case for .md), and, HTML can do more advanced displays like collapsible sections (i.e. for subprotocols), can embed downloadable files with the data:// URI scheme, and can handle arbitrary formatting complexities like nested tables & images within the cells of said tables (Markdown cannot).

Of course, said HTMLs could have also javascript in them, that could be talking to a backend with user action i.e. checking off checkboxes, and then all bets are off - could have a literally executable protocol in the HTML that also is talking to a LIMS-type thing. That concept probably beyond what I'm proposing here, but an interesting long-term possibility.

@jakebeal
Copy link
Member

For a simple start, one might just go with an automated markdown-to-html converter too... https://pypi.org/project/md-to-html/

@rpgoldman
Copy link
Collaborator

Another thing one could do is build an HTML back-end by using the original Markdown back end and taking advantage of Markdown's ability to incorporate inline HTML. So one could take the original Markdown back end, extend it with new features using embedded HTML, and then use a Markdown-to-HTML converter as @jakebeal suggests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants