All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.6 - 2023-11-08
- support older Python versions up to 3.7
- an error is now raised when
start_match
orend_match
are provided but don't match any line in the included content. Previously, the content was included in full if no match was found. - code: only infer code block language based on extension of included file.
- pygments'
guess_lexer
fails to work on the most obvious snippets while producing false-positives for others.
- pygments'
0.0.5 - 2023-09-12
- code: Infer code language using
pygments
, if available (added as optional dependency)- if
pygments
is not available, map some file extensions to pygments language (e.g.yml
->yaml
)
- if
0.0.4 - 2023-09-12
- code: Render included content as code block
lang
is deprecated and will be removed in favor ofcode
0.0.3 - 2023-09-08
- caption: line numbers are no longer off
0.0.2 - 2023-08-29
- caption: add default or custom caption to included content in code blocks
- suffix: add content after included content (but before any markup)
includex
errors are raised by default- treat as error when no content is found to include
0.0.1 - 2023-07-21
Initial release