-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
In syntax def doc examples, show html output rendered as well #9
Comments
Well, it's hard to put three things in columns; there's not really enough room for them to display nicely. |
Since some of the examples are wide things like tables or hr's, maybe the rendered html could be displayed underneath both, in its own row that spans the two cols? Could even have a different background color than the jdot and html blocks/cells. |
I could try just having the rendered HTML. |
I think it's most valuable to be able to look at the jdot and the rendered html at the same time. It could also be valuable to see the raw html sometimes. Maybe optimal would be jdot markup and rendered html side-by-side, and then a click-to-reveal the raw html if the reader wants to see it. |
Maybe something like this? (https://esbuild.github.io/getting-started/#bundling-for-the-browser)
I disagree. I find it more important to see what the function of jdot is: it’s input, and its output. Not how browsers render such output. |
Hm. Good point, @wooorm . Maybe it depends upon who the reader is. I suspect:
Anyhow though, regardless: the syntax reference in question happens to be using html for its output examples. The djot readme says djot is not HTML-centric. So, for users who are not targetting html as their output format (and who may not even know much html at all), it would help them to see some kind of rendered output. Incidentally, I found this markdown doc that goes with three cols for the smaller examples, but then reverts to the sequential style when it gets to blockquotes and images. |
This could partially also be solved with a cheatsheet-like page, something along the lines of https://commonmark.org/help/. The markdown doc you later link also is such a page. |
Note: even though there's now a cheatsheet (thanks for adding it in #39, @uvtc!), I still think it would be worth showing the rendered HTML output in the full syntax document. |
It would help to quickly visualize and learn what a bit of djot markup does if the examples contained rendered html in addition to the raw html output.
The text was updated successfully, but these errors were encountered: