mirror of https://github.com/status-im/consul.git
Add note about code duplication
This commit is contained in:
parent
5577783da3
commit
f7237ed171
|
@ -81,6 +81,9 @@ function renderKey(key, isHCLTab) {
|
|||
const enterpriseAlert = key.enterprise && <EnterpriseAlert inline />
|
||||
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 (
|
||||
<li key={keyLower} className="g-type-long-body">
|
||||
<a id={keyLower} className="__target-lic" aria-hidden="" />
|
||||
|
|
Loading…
Reference in New Issue