-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-LinksArea: Issues with linksArea: Issues with linksE-Help-wantedExperience: Help NeededExperience: Help Needed
Description
Given this anchor:
-- ANCHOR: eqNonEmpty
instance Eq (NonEmpty a) where
eq (NonEmpty x xs) (NonEmpty y ys) = x == y && xs == ys
-- ANCHOR_END: eqNonEmpty
when included as:
## Exercises
1. In the the code below:
```haskell
{{#include ../exercises/chapter6/test/no-peeking/Solutions.purs:eqNonEmpty}}
```
we ...
is expanded to:
## Exercises
1. In the the code below:
```haskell
instance Eq (NonEmpty a) where
eq (NonEmpty x xs) (NonEmpty y ys) = x == y && xs == ys
```
we ...
and rendered incorrectly as:
We'd ideally like it to be rendered as:
which requires this markdown source:
## Exercises
1. In the the code below:
```haskell
instance Eq (NonEmpty a) where
eq (NonEmpty x xs) (NonEmpty y ys) = x == y && xs == ys
```
we ...
Things would behave as expected if any indentation before an {{#include ...}}
block (4 spaces in this case) was also applied to every line of the included file (and not just the first line of that file).
https://rust-lang.github.io/mdBook/format/mdbook.html#including-portions-of-a-file
mdbook version: v0.4.12
mgeisler
Metadata
Metadata
Assignees
Labels
A-LinksArea: Issues with linksArea: Issues with linksE-Help-wantedExperience: Help NeededExperience: Help Needed