Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fixing indentation in jinja #69

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

timvink
Copy link
Owner

@timvink timvink commented Aug 15, 2024

No description provided.

@timvink timvink merged commit 5dcaeca into master Aug 15, 2024
25 checks passed
@timvink
Copy link
Owner Author

timvink commented Aug 15, 2024

@fralau mkdocs-macros-plugin will not keep the indentation if you insert multiple lines. This is a problem for example when inserting a table into a content tab.

I've fixed this by adding a custom filter to macros. See the PR, should be clear.

Perhaps you have a better solution, solving this natively inside the macros plugin?
If not, you might want to copy the add_indentation filter to macros by default and document it's usage with an example in the macros docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant