Skip to content

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

Closed
@randName

Description

@randName

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions