镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Indented included source gets indented - #30

Open
BarnabasSzabolcs wants to merge 5 commits into
cmacmackin:masterfrom
BarnabasSzabolcs:master
Open

BarnabasSzabolcs wants to merge 5 commits into
cmacmackin:masterfrom
BarnabasSzabolcs:master

Conversation

@BarnabasSzabolcs

Copy link
Copy Markdown

Consider the following situation:

=== "source"
    ` ` `python
    {!my_source.py!}
    ` ` `

and

print('Hello, world!')

Here we'd expect

=== "source"
    ` ` `python
    print('Hello, world!')
    ` ` `

That is, every line of my_source.py gets as many tabs and spaces as many is leading the inclusion tag.

This pull request enables this inclusion mode.

@BarnabasSzabolcs

BarnabasSzabolcs commented Jul 2, 2021 •

Copy link
Copy Markdown
Author

@cmacmackin Chris, your plugin was very useful to me, thanks a lot for sharing it!🚀 I hope to give an addition that is not in conflict with the current functionality and is useful to others, too.

My use case is: https://squidfunk.github.io/mkdocs-material/reference/content-tabs/#superfences

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