strata/frontend

Table of contents when title contains markup

Closed this issue · 3 comments

When a heading contains markup (for example <abbr>), the corresponding entry in the ToC seems to remove some spaces.

See https://beta.w3.org/standards/types/ for an example:

  • one heading is <abbr title="World Wide Web Consortium">W3C</abbr>&nbsp;Registry Track
  • the ToC is W3CRegistry Track

Another example is "

1.  Summary table

" where I've had to add two spaces so that the resulting "on this page" navigation displays one space after the number.

Fixed in Pull Request #99

Will review & get this merged in ASAP.

This is fixed and available in v0.8.1