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

Question: How to stop modifying content within <script></script> #1172

Closed
neoblizz opened this issue May 12, 2020 · 2 comments
Closed

Question: How to stop modifying content within <script></script> #1172

neoblizz opened this issue May 12, 2020 · 2 comments

Comments

@neoblizz
Copy link

I have two separate but related problems. I have a bunch of graphs in the markdown files that get displayed through vega, vega-lite, vega-embed scripts. And the script tag within the page contains a dump of JSON data.

  • First problem is that only one graph shows in the page (the page has 3): Page & Source

  • And the second problem is that <a href="https://... is being converted to <a href=&quot;<a href="https://..., which is causing the graph on this page to break: Page & Source

  • A separate problem was that some of the tags were turning into emojis, so I just turned on the setting noEmoji and it fixed that problem.

The last two things I mentioned I believe have to do with docsify modifying the content within the <script> tags. I don't understand why the first one is not displaying all the graphs.

Any guidance on how we should display these vega graphs would be helpful! Thank you!

I am enabling the support for vega with the following includes: https://github.com/gunrock/docs/blob/develop/docs/index.html#L25-L28

@neoblizz
Copy link
Author

neoblizz commented May 12, 2020

Ok, further info on the first problem. It only shows one graph. So, if I have 3 <script> enclosed graphs (JSONs), I can comment out any two, and the last one will show. If I uncomment all 3 only the first one shows. Which means, only the first <script> within my markdown is being executed?

I have to manually do <iframe> for it to work. This doesn't work with multiple iframes:

[some web](file.html ':include :type=iframe width=100% height=400px')

@neoblizz
Copy link
Author

I figured out the 2nd problem. The only thing I have issues with is the following:

I can't run multiple <script></script> (only one shows up) and if I switch to use iframe include it doesn't show multiple iframes, only one.

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

1 participant