AsciiDoc, Liquid and Jekyll
mattrighetti.com
mattrighetti.com
Unlike what you did, here you can create new component in ftd itself, so there is no limit to how many such components you can create while authoring content.
Maybe you are tired of single quote block: https://fifthtry.github.io/bling/quote/
You can checkout a video course: https://ftd.dev/expander/. And maybe join us on our Discord.
A language designed for authoring. But still powerful enough (one day, it’s work in progress) that you can build most UI in it.
I faced the exact same problem, and came up with roughly the same solution, except with Markdown, Jinja, and my own static site generator.
I needed to include calculators such as {% include "blocks/tableOfContents.html" %}, as well as constants like {{ MEDIAN_INCOME }}. These are inside the content, not at its edges.
Python-Markdown's approach is to store these tags somewhere, replace them with a placeholder, parse the content, then put the tags back, untouched. So the Markdown gets converted to HTML, but the Jinja blocks are untouched. The Jinja parser then renders those into the final template.
Looks similar to https://sphinxcontribdatatemplates.readthedocs.io/en/latest/...
Might have some neat ideas on how to make it an abstraction, and expose it as a standard interface.
I like the name “data templates” for this, though Hugo and many other tools have this built in, as I understand it. Though I haven’t used those much.
[0]: https://github.com/nimib-org/nimibex/issues/11 [1]: https://github.com/pietroppeter/nimib
does this work with Github Pages workflow ?
[0]: https://github.com/mattrighetti/mattrighetti.github.io/blob/...
Been using it for years, and I haven’t run into any issue thy would make me want to use anything else.
The implementation lacks checking, so for example if you have some text between square brackets, it will often just get dropped even if the contents is not valid as an attribute list.
{asterisk}There isn't much tooling. The community is small. The spec effort seems to have stagnated. AsciiDoctor and related projects seem to move at the speed of what Dan Allen decides is most worth his time.
That said, I've been wanting to do more long form writing, and AsciiDoc is lovely for that, so I may pick it up again for that.
That looks like a minor issue in GitHub's stylesheet, not really an AsciiDoctor problem.
AsciiDoctor is adding p elements in places where it should not. GitHub could work around this error with CSS, but they have not done so, nor should they. It's a simple issue to fix, just emit the bare li elements.
The HTML alternate back-end fixes a lot of these issues and chooses semantic elements for a more modern age (while Asciidoctor is actively overhauling its output I believe).
The issue visually can be solved with CSS as-is (remove the padding or margin from li > p:only-child), but Microsoft GitHub treats its AsciiDoc rendering as a second-class citizen despite it objectively having more/better features for documentation than Markdown. The negligence becomes apparent when you look at the way GitHub syntax fork (“flavor”) handles admonitions; not only does it overload, overcomplicate, and ruin the semantics of the blockquote, but the CSS styling that makes them look nice was never ported to admonitions for reStructuredText and AsciiDoc despite these formats having the feature natively to the syntax (no fork required) since forever.
It's been 9 years. That is not actively by any definition of the word.