bitstarr / grav-plugin-markdown-details Goto Github PK
View Code? Open in Web Editor NEWAdds the ability to render collapsible sections in Markdown
License: MIT License
Adds the ability to render collapsible sections in Markdown
License: MIT License
As title says… Maybe adding a way to add custom icons? but not this outdated icon fonts crap of cause.
Grav version 1.6.19
E_NOTICE - Undefined property: Grav\Plugin\MarkdownDetailsPlugin::$a11y
More details in the log
see title…
I've taken a brief look at the plugin and would like to share my findings. Hope you may find it useful.
$ bin/plugin devtools new-plugin
and copy your existing code into the right places.onMarkdownInitialized
and onTwigSiteVariables
are being handled on each and every request, also when derived from Admin. Might be a good idea to move the event registrations into onPluginsInitialized
and enable them only when request is not from Admin.onAssetsInitialized
where assets can be added.
onAssetsInitialized
The event indicates the assets manager has been initialized and is ready for assets to be added and managed.
js
and css
are stored in their respective folders /js
and /css
.$matches
is only used in one preg_match
Hope this helps...
i was trying, but that isn't working
!> top layer
!> 1st header
first content
!@
!> 2nd header
2nd content
!@
!@
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.