Add note about code duplication

This commit is contained in:
Luke Kysow 2021-01-07 11:15:11 -08:00
parent 5577783da3
commit f7237ed171
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ function renderKey(key, isHCLTab) {
const enterpriseAlert = key.enterprise && <EnterpriseAlert inline /> const enterpriseAlert = key.enterprise && <EnterpriseAlert inline />
const keyLower = keyName.toLowerCase() const keyLower = keyName.toLowerCase()
// NOTE: This code copies from https://github.com/hashicorp/remark-plugins/blob/df606efc844319a2532ec54e4cf6ff2d575108ff/plugins/anchor-links/index.js
// to ensure the styling of each bullet is correct. The two locations should be kept
// in sync.
return ( return (
<li key={keyLower} className="g-type-long-body"> <li key={keyLower} className="g-type-long-body">
<a id={keyLower} className="__target-lic" aria-hidden="" /> <a id={keyLower} className="__target-lic" aria-hidden="" />