{"id":18565314,"url":"https://github.com/pelican-plugins/markdown-include","last_synced_at":"2025-04-10T04:32:46.608Z","repository":{"id":180364650,"uuid":"655536945","full_name":"pelican-plugins/markdown-include","owner":"pelican-plugins","description":"Pelican plugin to include Markdown file contents","archived":false,"fork":false,"pushed_at":"2025-01-20T09:55:11.000Z","size":60,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T21:47:10.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pelican-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-19T05:25:56.000Z","updated_at":"2025-01-20T09:55:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5164f35-f0b4-46e2-86e8-e14c763ed933","html_url":"https://github.com/pelican-plugins/markdown-include","commit_stats":null,"previous_names":["pelican-plugins/markdown-include"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fmarkdown-include","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fmarkdown-include/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fmarkdown-include/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fmarkdown-include/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelican-plugins","download_url":"https://codeload.github.com/pelican-plugins/markdown-include/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248157653,"owners_count":21057048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T22:18:29.554Z","updated_at":"2025-04-10T04:32:46.600Z","avatar_url":"https://github.com/pelican-plugins.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Markdown Include: A Plugin for Pelican\n======================================\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pelican-plugins/markdown-include/main.yml?branch=main)](https://github.com/pelican-plugins/markdown-include/actions)\n[![PyPI Version](https://img.shields.io/pypi/v/pelican-markdown-include)](https://pypi.org/project/pelican-markdown-include/)\n[![Downloads](https://img.shields.io/pypi/dm/pelican-markdown-include)](https://pypi.org/project/pelican-markdown-include/)\n[![License](https://img.shields.io/pypi/l/pelican-markdown-include?color=blue)](https://www.gnu.org/licenses/agpl-3.0.en.html)\n\nThis plugin allows the use of the [Markdown-Include extension][] in Pelican articles.\n\n[Markdown-Include extension]: https://github.com/cmacmackin/markdown-include\n\n\nInstallation\n------------\n\nThis plugin can be installed via:\n\n```\npython -m pip install pelican-markdown-include\n```\n\nAs long as you have not explicitly added a `PLUGINS` setting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must add `md_include` to your existing `PLUGINS` list. For more information, please see the [How to Use Plugins](https://docs.getpelican.com/en/latest/plugins.html#how-to-use-plugins) documentation.\n\n\nUsage\n-----\n\nThe syntax for use within Pelican articles is `{!filename!}`. According to the documentation of the [Markdown-Include extension][], this statement will be replaced by the contents of `filename` and will work recursively. The replacement is done prior to any other Markdown processing, so any Markdown syntax that is wanted can be used within the included files. For more details, see the [Markdown-Include extension documentation][].\n\n[Markdown-Include extension documentation]: https://github.com/cmacmackin/markdown-include/#readme\n\n\nConfiguration\n-------------\n\nThe following variables control the behavior of the plugin and can be set in the Pelican settings file:\n\n- `MD_INCLUDE_BASE_PATH`: By default, the file name is given relative to the directory from where Pelican is run. This can be changed via this variable.\n\n- `MD_INCLUDE_ENCODING`: The encoding of the included files. Default: `\"utf-8\"`\n\n- `MD_INCLUDE_INHERIT_HEADING_DEPTH`: If `True`, increases headings on included file by amount of previous heading. Combines with `MD_HEADING_OFFSET` option below. Default: `False`\n\n- `MD_HEADING_OFFSET`: Increases heading depth by a specific amount, in addition to the `MD_INCLUDE_INHERIT_HEADING_DEPTH` option. Default: `0`\n\n\nAlternatives to this Plugin\n---------------------------\n\nPelican allows the use of extra Markdown extensions by declaring them in the `MARKDOWN` configuration variable.  However, as [explained][] in the Pelican documentation, adding new extensions via the `MARKDOWN` setting is awkward, because all the extensions loaded by default must also be explicitly listed. In addition to avoiding this problem, this plugin provides a “Pelican-ish” way of setting the configuration values of the Markdown-Include extension (`base_path`, `encoding`, `inherit_heading_depth`, and `heading_offset`).  Furthermore, the [Markdown-Include extension][] must be installed in a place where Pelican can find it, which may be tricky.\n\n[explained]: https://docs.getpelican.com/en/latest/settings.html\n\n\nContributing\n------------\n\nContributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on [existing issues][].\n\nTo start contributing to this plugin, review the [Contributing to Pelican][] documentation, beginning with the **Contributing Code** section.\n\n[existing issues]: https://github.com/pelican-plugins/markdown-include/issues\n[Contributing to Pelican]: https://docs.getpelican.com/en/latest/contribute.html\n\n\nAcknowledgments\n---------------\n\nThanks to [Justin Mayer][] for helping with migration of this plugin under the Pelican Plugins organization.\n\n[Justin Mayer]: https://justinmayer.com\n\n\nAuthor\n------\n\nCopyright © 2015, 2021-2024, 2025 Rafael Laboissière (\u003crafael@laboissiere.net\u003e)\n\n\nLicense\n-------\n\nThis project is licensed under the terms of the the AGPL-3.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelican-plugins%2Fmarkdown-include","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelican-plugins%2Fmarkdown-include","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelican-plugins%2Fmarkdown-include/lists"}