Smooth Scroll for Headings in Languages other than English
Closed this issue · 4 comments
justinyoo commented
IDs for both <h1>
and <h2>
elements are not properly inserted when populating contents translated into languages other than English.
eg)
<h1 id="이-가이드라인에-대하여-about-the-guidelines">이 가이드라인에 대하여 About the Guidelines</h1>
should be
<h1 id="about-the-guidelines">이 가이드라인에 대하여 About the Guidelines</h1>
marocchino commented
<a id="about-the-guidelines"></a>
# 이 가이드라인에 대하여 About the Guidelines
justinyoo commented
Whatever. The point is to programmatically remove "이 가이드라인에 대하여" part or add anchor tags while loading data from AJAX call. Won't manually add additional anchor tags into .md documents.
justinyoo commented
Done. I've put extra parenthesis to each headings to make this work.
marocchino commented
👍