danieleades / mdbook-d2

D2 diagram generator plugin for MdBook
MIT License
26 stars 8 forks source link

D2 diagram breaks headers below #19

Closed mrpatrickpilch closed 1 year ago

mrpatrickpilch commented 1 year ago

Scenario:

Default config in place as indicated in the README.

Input:

# Chapter 1

## Test
```d2
a -> b

Again


Actual Result:

![image](https://user-images.githubusercontent.com/88005594/217636528-67db246c-262f-42f4-9e5b-386489662eea.png)

My expected result would be more inline with displaying a standard code block, e.g.

Chapter 1

Test

a -> b

Again



![image](https://user-images.githubusercontent.com/88005594/217636766-e1ab9054-bc34-4c2d-8360-5971989e9d42.png)
danieleades commented 1 year ago

Thanks for the report! Will take a look

danieleades commented 1 year ago

@mrpatrickpilch do you want to try installing mdbook-d2 from main and see if that solves your problem?

something like

cargo install --git https://github.com/danieleades/mdbook-d2.git
mrpatrickpilch commented 1 year ago

@danieleades Looks good now! Thank you!