Skip to content

Commit

Permalink
Merge pull request #1543 from alixander/strong-md
Browse files Browse the repository at this point in the history
fix mixed md
  • Loading branch information
alixander authored Aug 8, 2023
2 parents 0d92ebc + 2c60c04 commit 12e68a3
Show file tree
Hide file tree
Showing 7 changed files with 1,971 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/release/changelogs/next.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
#### Bugfixes ⛑️

- Fixes `d2 fmt` to format all files passed as arguments rather than first non-formatted only [#1523](https://github.com/terrastruct/d2/issues/1523)
- Fixes Markdown cropping last element in mixed-element blocks (e.g. em and strong) [#1543](https://github.com/terrastruct/d2/issues/1543)
9 changes: 9 additions & 0 deletions e2etests/stable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,15 @@ i am top left: { shape: text; near: top-left }
i am top right: { shape: text; near: top-right }
i am bottom left: { shape: text; near: bottom-left }
i am bottom right: { shape: text; near: bottom-right }
`,
},
{
name: "md_mixed",
script: `example: {
explanation: |md
*one* __two__ three!
|
}
`,
},
{
Expand Down
129 changes: 129 additions & 0 deletions e2etests/testdata/stable/md_mixed/dagre/board.exp.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 12e68a3

Please sign in to comment.