Add note about code duplication

This commit is contained in:
Luke Kysow 2021-01-07 11:15:11 -08:00
parent 1c4352fd5a
commit c32b0db50c
No known key found for this signature in database
GPG Key ID: FA168D4DC3F04307
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 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="" />