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

ページ内リンクを修正する #93

Open
munierujp opened this issue Dec 6, 2019 · 0 comments
Open

ページ内リンクを修正する #93

munierujp opened this issue Dec 6, 2019 · 0 comments

Comments

@munierujp
Copy link

munierujp commented Dec 6, 2019

ほとんどのページにおいて、各セクションのページ内リンクが自動生成されたものになってしまっています。
たとえば、「JavaScriptを改善する」は、次のようなロジックでアルファベットの文字列「javascriptwosuru」に変換されています。

  • "JavaScript" -> "javascript"
  • "を" -> "wo"
  • "改善" -> ""(漢字は単に無視されるようです)
  • "する" -> "suru"

自動生成された文字列は不完全なので、次のいずれかの方法で明示的にid属性を指定すべきでしょう。

  • A:見出しのid属性に実際の見出し(日本語)を指定する
<h2 id="JavaScriptを改善する">JavaScriptを改善する</h2>
  • B:見出しのid属性に本家と同じものを指定する
<h2 id="making-javascript-better">JavaScriptを改善する</h2>

いずれにせよ、目次のほうも合わせて修正が必要になるかと思います。

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