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

HTML output does not render proper titles #30

Closed
mbonig opened this issue Mar 5, 2021 · 4 comments
Closed

HTML output does not render proper titles #30

mbonig opened this issue Mar 5, 2021 · 4 comments

Comments

@mbonig
Copy link

mbonig commented Mar 5, 2021

When rendering to HTML the title gets set to a pre formatted JSON (or yaml) representation. However, the title property doesn't render spaces properly.

image

Looking at the rendered HTML, it appears that vis.js might be trying to replace newlines with brs causing this misformatting:

image

@ljacobsson
Copy link
Owner

Hey @mbonig

Thanks for reporting. I've noticed the same thing and this used to work, but suddenly isn't. I have the feeling it's happened through some update of the visjs lib. Been searching their github issues without any luck.

I'll raise an issue there and link to this one

@mbonig
Copy link
Author

mbonig commented Mar 6, 2021

Is there a way to control what the title renders to? I'd love to replace it with a link to the resource in AWS.

@ljacobsson
Copy link
Owner

I like the idea a lot and I would also want this, but since the AWS console doesn't follow any conventions, there'd be custom logic per resource to build the URL

I've attempted this in another project, but it just gets too time consuming

@ljacobsson
Copy link
Owner

Version 1.1.20 that just got deployed fixes the formatting issue 👍

Will close this issue and will address the linking to the console if I find a straight forward ARN -> URL mapping.

Thanks again for reporting

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

No branches or pull requests

2 participants