Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow addition content in sidebar (like navbar) #518

Closed
jhildenbiddle opened this issue Jun 6, 2018 · 1 comment
Closed

Allow addition content in sidebar (like navbar) #518

jhildenbiddle opened this issue Jun 6, 2018 · 1 comment

Comments

@jhildenbiddle
Copy link
Member

jhildenbiddle commented Jun 6, 2018

Docsify ignores content in the sidebar markdown file that is not contained within an li element.

For example, this markdown:

<p>Foo</p>

- Some Text

<p>Bar</p>

Will render as:

<div class="sidebar-nav">
  <ul>
    <li>Some Text</li>
  </ul>
</div>

The two paragraph tags are ignored (as would any content not contained within an li element). I would expect the output to be as follows:

<div class="sidebar-nav">
  <p>Foo</p>
  <ul>
    <li>Some Text</li>
  </ul>
  <p>Bar</p>
</div>

Rendering all content found in the sidebar markdown file would match docsify's behavior of rendering additional content found in the navbar markdown file. For example:

The following navbar markdown:

Foo

- Some Text

Bar

Is rendered as the following HTML:

<nav class="app-nav">
  <p>Foo</p>
    <ul>
      <li>Text</li>
    </ul>
  <p>Bar</p>
</nav>

Ideally, the sidebar would offer the same flexibility.

Thanks!

@jhildenbiddle jhildenbiddle changed the title Allow addition content in sidebar before/after .sidebar-nav element Allow addition content in sidebar (like navbar) Jun 6, 2018
@jhildenbiddle
Copy link
Member Author

Thank you! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant