neurobin/mdx_include

Apply indentation not only for the first line

zizo007 opened this issue · 2 comments

When using mdx_include with other mkdocs extensions such as admonition it is important to apply the indentation for all the lines being included.

For example:

Suppose we have an md we would like to include:

My included content.
Which can have multiple
lines.

And blank lines
as well.
!!! note "This is only a test"
    {! included_item !}

Currently, this results in the following:

!!! note "This is only a test"
    My included content.
Which can have multiple
lines.

And blank lines
as well.

which is not suitable for this scenario. Instead it should generate this:

!!! note "This is only a test"
    My included content.
    Which can have multiple
    lines.
    
    And blank lines
    as well.

How about a syntax enhancement for this feature?
I would gladly develop this feature.

How about a syntax enhancement for this feature?

Introducing a new syntax feature, well, that sounds good.

How about this changeset?
Please review and address if something is missing.