Skip to content

Multines include #2830

Description

@hg-anssi

Problem

Multilines includes which are nested into markdown structures (like quote blocks for instance) brake the markdown compilation.

Steps

When you preprocess this markdown

> Quoted inclusion
> ```rust
> {{#include hello_world.rs}}
> ```

with multilines file hello_world.rs like

pub fn main() {
    println!("Hello, World")
}

you get

> Quoted inclusion
> ```rust
> pub fn main() {
    println!("Hello, World")
}
> ```

which breaks the markdown compilation

Possible Solution(s)

No response

Notes

No response

Version

mdbook v0.5.0-alpha.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions