Skip to content

Sidebar headers not being detected when after other content (i.e. image) #841

Closed
@rwxrob

Description

@rwxrob

Bug report

I appears headers are not detected for sidebar: auto configuration unless they are the first or near the first of the document. This seems to be a bug since many will want to place an image or other introductory text and versions before the first header.

Version

0.14.2

Steps to reproduce

screen shot 2018-09-14 at 3 54 57 pm

screen shot 2018-09-14 at 3 55 10 pm

For those wanting a work around to this issue you can force the sidebar using the explicit variation of the sidebar configuration instead of just auto but it would be nice if auto did what most might expect.

What is expected?

I was expecting this to auto detect the level 1 header even though it comes after the image.

What is actually happening?

The image is causing the header not being detected.

Other relevant information

  • Your OS: Mac Os
  • Node.js version: v10.9.0
  • Browser version: Chrome Version 69.0.3497.92 (Official Build) (64-bit)
  • Is this a global or local install? global
  • Which package manager did you use for the install? yarn

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions