🐐 nimibex - extensions, experiments and extras for nimib ecosystem
nimib-land / nimibex Goto Github PK
View Code? Open in Web Editor NEW🐐 nimibex - extensions, experiments and extras for nimib ecosystem
License: MIT License
🐐 nimibex - extensions, experiments and extras for nimib ecosystem
License: MIT License
In the few Nimib files that I created, I always resort to templates similar to this one for the creation of a table of contents (TOC):
var nbToc: NbBlock
template addToc =
newNbBlock("nbText", false, nb, nbToc, ""):
nbToc.output = "### Table of Contents:\n\n"
template nbSection(name:string) =
let anchorName = name.toLower.replace(" ", "-")
nbText "<a name = \"" & anchorName & "\"></a>\n## " & name & "\n\n---"
# see below, but any number works for a numbered list
nbToc.output.add "1. <a href=\"#" & anchorName & "\">" & name & "</a>\n"
It would be interesting to make this easily configurable with a simple addToc command, that would define nbSection, nbSubSection, nbSubSubSection, nbParagraph (like Latex?) or nbH1Title, nbH2Title, etc ... for each level of heading.
It would be cool if the Toc appearance could be configurable too (level of heading, title?) without having to resort to nbToc.output and newNbBlock.
I made a library for adding additional themes to nimib. The repository is here: https://github.com/neroist/nimitheme
It also provides Dark Reader and highlight.js support (you can easily set the code theme you'd like to use).
https://mattrighetti.com/2023/02/22/asciidoc-liquid-and-jekyll.html
Author uses asciidoc and Jekyll for the flexibility required to support custom chat like blocks. Should be rather straightforward to do with nimib.
nimibex could be a good place to start with that
it would be cool if we could generate PDFs with nimib. Perhaps this could be achieved with wkhtmltopdf bindings?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.