https://github.com/Magnus167/mdToHTML
www.yourwebsite.com/md.htm?src=<link_to_md>
Note: if MD file is in the same directory as md.htm, simply the filename will suffice.
magnus167.github.io/mdToHTML/md.htm?src=<link_to_md>
You can use this link as a prefix:
magnus167.github.io/mdToHTML/md.htm?src=
It's freely available for anyone to use
magnus167.github.io/mdToHTML/md.htm?src=https://raw.githubusercontent.com/Magnus167/mdToHTML/main/README.md
or
magnus167.github.io/mdToHTML/md.htm?src=README.md
since README.md is hosted in the same directory as md.htm
if the MD file is hosted on github, the raw link where the file is hosted must be used.
if the file is hosted at
username/repo_name/branch_name/file.md
the URL to the raw file would be
https://raw.githubusercontent.com/username/repo_name/branch_name/file.md
you can get the raw link by viewing the file on github, and clicking on "raw" right above the file preview.
Similarly,
for this file at
/Magnus167/mdToHTML/README.md
(https://github.com/Magnus167/mdToHTML/blob/main/README.md)
the raw link is
https://raw.githubusercontent.com/Magnus167/mdToHTML/main/README.md
The code uses the repositories : zhlicen/md.htm and zerodevx/zero-md. to run. Thank you for your great work!
This particular instance uses Magnus167/zero-md, which is just a clone of zerodevx/zero-md.
md.htm uses JSDeliver to get the JS scripts from Magnus167/zero-md.
Anyone is free to use the code here for whatever purposes while keeping in mind the license/permissions for zhlicen/md.htm and zerodevx/zero-md.