Skip to content

Commit

Permalink
Bugfix for broken mini-toc links (#1543)
Browse files Browse the repository at this point in the history
Bugfix for broken mini-toc links
  • Loading branch information
rrelledge authored Sep 24, 2021
1 parent 34e18f6 commit ae990f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/rs/references/memtier-benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@ You should expect to see an average throughput of:
- Around 160,000 ops/sec when testing without replication (i.e. Four master shards)
- Around 115,000 ops/sec when testing with enabled replication (i.e. Four master and 2 replica shards)

In both cases, the average latency should be below one millisecond.
In both cases, the average latency should be below one millisecond.
4 changes: 2 additions & 2 deletions layouts/partials/mini-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ <h4 class="text-muted">Contents</h4>
{{ $headerLevel := index (findRE "[1-3]" . 1) 0 }}
{{ $headerLevel := len (seq $headerLevel) }}

{{ $anchorIDraw := ($header | plainify | htmlEscape | replaceRE "[/-]" "") }}
{{ $anchorID := ($anchorIDraw | anchorize)}}
{{ $genAnchor := index (split (index (split $header "id=\"") 1) "\"") 0 }}
{{ $anchorID := $genAnchor }}

{{ if ne $i 0 }}
{{ $prevHeaderLevel := index (findRE "[1-3]" (index $headers (sub $i 1)) 1) 0 }}
Expand Down

0 comments on commit ae990f5

Please sign in to comment.