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

Created on 17 Mar 2020  路  4Comments  路  Source: docsifyjs/docsify

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

  • [x] 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
PR Welcome bug help wanted

Most helpful comment

we do have a issue with multiple embedding!

I need to look in it !

Feel free to investigate and submit the fix

All 4 comments

we do have a issue with multiple embedding!

I need to look in it !

Feel free to investigate and submit the fix

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.

I am having this issue with latest @4, may be roll back to a previous version might be temporary solution ? anyone know when this issue first appears ?

I'm can confirm this as well. Are there any known workarounds?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jadyli picture Jadyli  路  3Comments

dialex picture dialex  路  4Comments

lukasmrtvy picture lukasmrtvy  路  5Comments

timrossback picture timrossback  路  3Comments

jhildenbiddle picture jhildenbiddle  路  4Comments