I needed a way to view markdown in a larger font because the built in rendering of rich text in a Quick View or the like was too small.
I also wanted to be able to view dynamic HTML markup. So, I made a quick page that takes HTML markup and plops it on the page. (Dropbox used to render HTML with their public links, but they deprecated that a while ago. Sad day.)
And yes, I did just shove it in a URL parameter. Perhaps some day I won’t be lazy and do something more intelligent, but for now it works.
I have the host page using bootstrap 4 so things will be styled a little nicer without effort. I also made some shorthand markup tags and am currently working on more. If you have other ideas, I’d love to hear them.
Here is some documentation for now until I can get it setup in a more permanent spot.
Options as URL parameters
html the html markup
bg background color (default white)
fg font color (default black)
don’t forget to close the tag the same way ex: <btn1></btn1>
<btn> creates <button type=“button” class=“btn”>
<btn1> creates <button type=“button” class=“btn-primary”>
<btn2> creates <button type=“button” class=“btn-secondary”>
<btns> creates <button type=“button” class=“btn-success”>
<btnd> creates <button type=“button” class=“btn-danger”>
<btnw> creates <button type=“button” class=“btn-warning”>
<btni> creates <button type=“button” class=“btn-info”>
<btnl> creates <button type=“button” class=“btn-light”>
<btndrk> creates <button type=“button” class=“btn-dark”>
<t> | <table> creates <table class=“table”>
<tdrk> creates <table class=“table table-dark”>
<tstr> creates <table class=“table table-striped”>
<tdrkstr> creates <table class=‘table table-dark table-striped’>
More to come. Open to suggestions.
Please feel free to use this (responsibly) in your scripts. I will keep an eye on things for now, but I’m also working on Auth0 for creating my own API keys for those that want to use it.
Here’s how it works:
- Take some Markdown and make rich text from it
- Make HTML from the rich text
- Replace any equal signs with [eq]
Otherwise it throws off the url parameters
- Pass that output along to my site to be processed
- Show the web page
Or, take some html and pass it along to the site just the same:
Here are the two example shortcuts:
Markdown to Richtext Example
HTML Markup Example
I also made into a “function” of sorts. I like to extract this type of functionality into separate Shortcuts for modularity.
Call these “functions” like so:
I really hope someone gets some use out of this. Let me know if you have any questions or issues!