docsify icon indicating copy to clipboard operation
docsify copied to clipboard

Custom sidebar repeat rendering

Open buuing opened this issue 3 years ago • 6 comments

Bug Report

When I use file embedding, I find that the sidebar on the left is rendered repeatedly

The first time I enter the first page, there is no problem, but when I press F5 to refresh the page at first, I will see the following sidebar

image

Steps to reproduce

When using file embedding, you can see the problem

What is current behaviour

The sidebar is rendered repeatedly

What is the expected behaviour

I want the sidebar to render correctly

Other relevant information

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

  • Your OS: Mac m1

  • Node.js version: 12.22.7

  • npm/yarn version: 6.13.4

  • Browser version: Google Chrome 96

  • Docsify version: 4.12.1

  • Docsify plugins: nothing

Please create a reproducible sandbox

It seems that file embedding cannot be used on codesandbox To this end, I specially prepared a small demo to run and see the problem

docsify-test.zip

Mention the docsify version in which this bug was not present (if any)

[email protected]

buuing avatar Dec 21 '21 03:12 buuing

Is this project still under maintenance? If this problem is caused by my configuration error, please also prompt me

buuing avatar Dec 23 '21 06:12 buuing

I've seen some funkiness like this before. This could be a bug.

trusktr avatar Dec 24 '21 03:12 trusktr

I just found that writing like this can suppress this error

[test](../test.html ':include :type=code :fragment=demo js')

[test](../test.html ':include')

But if so, the error will recur as usual

[test](../test.html ':include')

[test](../test.html ':include :type=code :fragment=demo js')

buuing avatar Dec 24 '21 03:12 buuing

At present, my solution is to add an [test](../test.html ':include :type=code :fragment=demo js') at the beginning of each .md document

buuing avatar Dec 24 '21 03:12 buuing

That's peculiar. Thanks for pointing that out!

trusktr avatar Dec 24 '21 03:12 trusktr

I am still having this issue. any updates?

mljuliang avatar Apr 06 '22 14:04 mljuliang