{ "info": { "author": "Armin Ronacher", "author_email": "armin.ronacher@active-4.com", "bugtrack_url": null, "classifiers": [ "Environment :: Plugins", "Environment :: Web Environment", "Framework :: Lektor", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License" ], "description": "# lektor-markdown-header-anchors\n\nThis plugin extends the markdown support in Lektor in a way that headlines\nare given anchors and a table of contents is collected.\n\n## Enabling the Plugin\n\nTo enable the plugin run this command:\n\n```shell\n$ lektor plugins add markdown-header-anchors\n```\n\n## In Templates\n\nWithin templates it becomes possible to access the `.toc` property of\nmarkdown data. It's a list where each item has the following attributes:\n\n* `anchor`: the name of the anchor\n* `title`: the title of the headline as HTML\n* `children`: a list of headers below that header\n\nExample rendering:\n\n```jinja\n