{ "info": { "author": "Sergey Kanunnikov", "author_email": "sergey.kanunnikov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Documentation", "Topic :: Utilities" ], "description": "# \u0421ustomIDs\n\nCustomIDs is a preprocessor that allows to define custom identifiers (IDs) for headings in Markdown source by using Pandoc-style syntax in projects built with MkDocs or another backend that provides HTML output. These IDs may be used in hyperlinks that refer to a specific part of a page.\n\n## Installation\n\n```bash\n$ pip install foliantcontrib.customids\n```\n\n## Usage\n\nTo enable the preprocessor, add `customids` to `preprocessors` section in the project config:\n\n```yaml\npreprocessors:\n - customids\n```\n\nThe preprocessor supports the following options:\n\n```yaml\n - customids:\n stylesheet_path: !path customids.css\n targets:\n - pre\n - mkdocs\n - site\n - ghp\n```\n\n`stylesheet_path`\n: Path to the CSS stylesheet file. This stylesheet should define rules for `.custom_id_anchor_container`, `.custom_id_anchor_container_level_N`, `.custom_id_anchor`, and `.custom_id_anchor_level_N` classes. Here `N` is the heading level (`1` to `6`). Default path is `customids.css`. If stylesheet file does not exist, default built-in stylesheet will be used.\n\n`targets`\n: Allowed targets for the preprocessor. If not specified (by default), the preprocessor applies to all targets.\n\nCustom ID may be specified after a heading content at the same line. Examples of Markdown syntax:\n\n```markdown\n# First Heading {#custom_id_for_first_heading}\n\nA paragraph.\n\n## Second Heading {#custom_id_for_second_heading}\n\nSome another paragraph.\n```\n\nThis Markdown source will be finally transformed into the HTML code:\n\n```html\n
\n\n

First Heading

\n\n

A paragraph.

\n\n
\n\n

Second Heading

\n\n

Some another paragraph.

\n```\n\n(Note that CustomIDs preprocessor does not convert Markdown syntax into HTML; it only inserts HTML tags `
...
` into Markdown code.)\n\nCustom IDs must not contain spaces and non-ASCII characters.\n\nExamples of hyperlinks that refer to custom IDs:\n\n```markdown\n[Link to Heading 1](#custom_id_for_first_heading)\n\n[Link to Heading 2 in some document at the current site](/some/page/#custom_id_for_second_heading)\n\n[Link to some heading with custom ID at an external site](https://some.site/path/to/the/page/#some_custom_id)\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/foliant-docs/foliantcontrib.customids", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "foliantcontrib.customids", "package_url": "https://pypi.org/project/foliantcontrib.customids/", "platform": "any", "project_url": "https://pypi.org/project/foliantcontrib.customids/", "project_urls": { "Homepage": "https://github.com/foliant-docs/foliantcontrib.customids" }, "release_url": "https://pypi.org/project/foliantcontrib.customids/1.0.6/", "requires_dist": [ "foliant (>=1.0.4)" ], "requires_python": "", "summary": "Custom heading IDs for Foliant.", "version": "1.0.6" }, "last_serial": 5759609, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "ce3b871950d1c42d0178a4c6824888c1", "sha256": "340501ee0d494510b7c29158092aaa8e1195bf6be3f35501e289414704ee2fd9" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ce3b871950d1c42d0178a4c6824888c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2238, "upload_time": "2018-03-27T10:18:41", "url": "https://files.pythonhosted.org/packages/ae/6f/d8845e77b4f7987ee6be740f7c1309208157e1793fb45a1bf5290f59b0bf/foliantcontrib.customids-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8e46cad51e8228b228e76d41f809bbba", "sha256": "ee580ab253b760261168da6b6440d3ffa9bf9f9bb0f9fb45fda1c75702df0578" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8e46cad51e8228b228e76d41f809bbba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2313, "upload_time": "2018-03-27T14:01:47", "url": "https://files.pythonhosted.org/packages/9a/0b/5a37202ff0e0ee5aeb376d2a83c1d299811203f77dfd480121c619165783/foliantcontrib.customids-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "63f2a7a80a143b47f1f8e5fd0b51526e", "sha256": "249591c8f1553eac90fc4ff9a7f8673c99053be785a97f157dbb8b4508c94003" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.2.tar.gz", "has_sig": false, "md5_digest": "63f2a7a80a143b47f1f8e5fd0b51526e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2447, "upload_time": "2018-03-28T10:48:19", "url": "https://files.pythonhosted.org/packages/3f/ed/d3544d77c8e0df9b9e663b43959a7cf1ead851e2f7d1f7abcced91be3ce0/foliantcontrib.customids-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "172f0a9556581903fb72f5b7ae0d54f5", "sha256": "ea1dbc002d25f909621b537931aee9cc95d40823e76a14e5c0ede1a7c667131e" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.3.tar.gz", "has_sig": false, "md5_digest": "172f0a9556581903fb72f5b7ae0d54f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2745, "upload_time": "2018-04-26T11:13:42", "url": "https://files.pythonhosted.org/packages/3b/cc/15eba706ba94f28d8ce11e011308d1f34c9a8539c0a642daefb249338054/foliantcontrib.customids-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "92ede2c3924f324da5ff2011c5312438", "sha256": "512a3217a70e1912a1a9e8ce486f29c9125d6ef7a15b387fcd01d73f0f571544" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.4.tar.gz", "has_sig": false, "md5_digest": "92ede2c3924f324da5ff2011c5312438", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3393, "upload_time": "2018-05-30T16:58:28", "url": "https://files.pythonhosted.org/packages/77/83/ba30ddb86faa2bac914eb2f02f2eb2ff8828cb097571c6a64cdd10ea2db9/foliantcontrib.customids-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "80790174d1e32a1918813cbcd4137a2d", "sha256": "88ef2187112f8dedb7e48c9c154c77bd93e5096f599605778a895326bcadadc0" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.5.tar.gz", "has_sig": false, "md5_digest": "80790174d1e32a1918813cbcd4137a2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3432, "upload_time": "2018-11-16T13:17:37", "url": "https://files.pythonhosted.org/packages/46/e0/c4fa66faf214d78ea2aaba4955fdde333b70606d3a72ba26b4b2f7e82e1c/foliantcontrib.customids-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "669f097d8e507df462bdf528aca850d5", "sha256": "72f028ef62fc01ba6264d15314d411dc9afee73e62a77eb1890e6506428ce0d6" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "669f097d8e507df462bdf528aca850d5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4776, "upload_time": "2019-08-26T13:08:37", "url": "https://files.pythonhosted.org/packages/d4/3e/e9e3ef4cdb345b4826a3bec7a6d5666fb16f95acc08a00db68d2eed57a43/foliantcontrib.customids-1.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "995989ac8a8dfb677a6cd5f72bc2ce4a", "sha256": "32da9b3360cbf2f788e846895cb5c051cbe8673b28693bcdaa22e61fcff5f43d" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.6.tar.gz", "has_sig": false, "md5_digest": "995989ac8a8dfb677a6cd5f72bc2ce4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3712, "upload_time": "2019-08-26T13:08:39", "url": "https://files.pythonhosted.org/packages/c4/93/2acd4b76b3d9f861fda625acf69e4145b9499404b2b39615b51d75856c15/foliantcontrib.customids-1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "669f097d8e507df462bdf528aca850d5", "sha256": "72f028ef62fc01ba6264d15314d411dc9afee73e62a77eb1890e6506428ce0d6" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "669f097d8e507df462bdf528aca850d5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4776, "upload_time": "2019-08-26T13:08:37", "url": "https://files.pythonhosted.org/packages/d4/3e/e9e3ef4cdb345b4826a3bec7a6d5666fb16f95acc08a00db68d2eed57a43/foliantcontrib.customids-1.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "995989ac8a8dfb677a6cd5f72bc2ce4a", "sha256": "32da9b3360cbf2f788e846895cb5c051cbe8673b28693bcdaa22e61fcff5f43d" }, "downloads": -1, "filename": "foliantcontrib.customids-1.0.6.tar.gz", "has_sig": false, "md5_digest": "995989ac8a8dfb677a6cd5f72bc2ce4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3712, "upload_time": "2019-08-26T13:08:39", "url": "https://files.pythonhosted.org/packages/c4/93/2acd4b76b3d9f861fda625acf69e4145b9499404b2b39615b51d75856c15/foliantcontrib.customids-1.0.6.tar.gz" } ] }