Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamline diagram presentation in markdowns #95

Merged
merged 4 commits into from
Nov 28, 2022

Conversation

jp7677
Copy link
Collaborator

@jp7677 jp7677 commented Nov 25, 2022

Re-use the diagram view when rendering an embedded diagram in a markdown.

Also handle non-existing diagram keys in markdowns. This fixes #93

@jp7677
Copy link
Collaborator Author

jp7677 commented Nov 25, 2022

About https://github.com/avisi-cloud/structurizr-site-generatr/blob/main/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Markdown.kt#L25 , we might wanna move the markdown translation to the model and just pass the resulting html to the view.

Edit: this is now done as part of this PR.

@jp7677 jp7677 marked this pull request as ready for review November 25, 2022 19:27
Re-use the diagram view when rendering an embedded diagram in
a markdown. Also handle non-existing diagram keys in markdowns.
Without doing so we end up with a full html document including header
and body, but here we only need the inner html of the body.
This is more in line with the handling of raw html for SVG files and
simplifies the views.
@dirkgroot dirkgroot merged commit d5c7837 into avisi-cloud:main Nov 28, 2022
@jp7677 jp7677 deleted the markdown-diagrams branch November 28, 2022 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.0.14 NoSuchElementException: Collection contains no element matching the predicate
2 participants