picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 616 forks source link

automatically generated ids for headers #669

Closed krodelabestiole closed 1 year ago

krodelabestiole commented 1 year ago

hello, i couldn't find any info or any way on how to generate automatically ids for headers (slugifying their text)

i can write for instance : ### Subscription {#subscription} that will render as : <h3 id="subscription">Subscription</h3>

But I wish I had the same result writing only : ### Subscription (not only <h3>Subscription</h3> )

This is a common functionnality for wikis e.g. Any markdown option or such to this result ?

PhrozenByte commented 1 year ago

Not out-of-the-box. Check the plugins on our website as well as the plugins wiki, as far as I remember there was a plugin for that.

krodelabestiole commented 1 year ago

Thanks. I've checked every current plugins but couldn't find any that does this job.

I hope I could find some time to develop one...

dkyme commented 1 year ago

This Table of content plugin might do the job: https://framagit.org/ohnonot/PicoTableOfContent Or could be an inspiration for your own plugin.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: