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

記事内の目次表示 #367

Closed
irgaly opened this issue Apr 28, 2016 · 2 comments
Closed

記事内の目次表示 #367

irgaly opened this issue Apr 28, 2016 · 2 comments

Comments

@irgaly
Copy link

irgaly commented Apr 28, 2016

ナレッジ記事内に目次があると便利です。

多くの記事は、内容量がそんなに多くはないのですが、情報量が多くなる記事のときには目次があると助かります。

KnowledgeのMarkdown記事に、タグを記載して目次を手書きしている人がいるのを見て、これはKnowledge側で目次生成できたほうが良いかと思い、要望としてIssue登録させていただきます。


Qiitaは当初は記事の右上に折りたたみで目次を表示していたようですね。

http://blog.qiita.com/post/77055935852/qiita-toc

現在は、右側のサイドバーへ目次を表示しているようです。

@koda-masaru
Copy link
Contributor

そうですね。Knowledgeでも、目次をつけることを検討します。

以下のようにしようと思います。

  • 「#」から始まる、hタグの部分を抽出して目次のラベルとします。
    • 「#」の3階層くらいまでを対象
  • 目次は、サイドバー部分の「一番上」に表示

@koda-masaru
Copy link
Contributor

v1.4.0でリリースしましたのでissueをクローズします。

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

No branches or pull requests

2 participants