question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Embed with :type=code replacing entire page when other embeds are present

See original GitHub issue

Bug Report

(potentially related to #791 and #866 or #970)

Steps to reproduce

Include a file as a .html and then as a code block, i.e.

[embed](embed.html ':include')

[source](embed.html ':include :type=code :fragment=demo')

raw files

rendered version

Tested in Chrome, Firefox and Edge

What is current behaviour

The code block overwrites the page content (after a short delay).

The order of embedding does not matter, and even if the linked files are different this will happen.

If either block is removed there is no issue, and it seems unrelated to the fragment nor highlight type.

What is the expected behaviour

Multiple embed blocks remain visible.

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Windows 10 x64

  • Browser version: Chrome 80.0.3987.132

  • Docsify version: latest (4.11.2)

  • Docsify plugins: None

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
anikethsahacommented, Mar 17, 2020

we do have a issue with multiple embedding!

I need to look in it !

Feel free to investigate and submit the fix

2reactions
kerimcommented, Jun 14, 2020

I am having a similar issue. Not with type=code, but just with multiple embeds. The entire page gets replaced with one of the embeds, until I do a browser refresh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use IFRAME and web resource controls on a form
IFRAME and web resource controls embed content from another location in pages by using an HTML IFRAME element.
Read more >
Replace youtube link with embed and leave other text unharmed
However, my current code is replacing the entire sentence with the embed code. What I want to do is to just convert the...
Read more >
9 Different Ways to Embed Code in Medium | by Abhay Parashar
9 Different Ways to Embed Code in Medium · 1. Inline Code · 2. Embedded Code Directly on Medium · 3. Github Gists...
Read more >
Embed codes - Adobe Support
The embed code is how the web fonts are loaded into your website in the browser or into an HTML email in the...
Read more >
These Pro Carl-bot Embed Tips will Improve Your Discord
Learn how to copy and edit embeds, create clickable text that redirects to a website, tag channels, roles, and users, and more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found