0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test
Kevin Ansfield a4aab19403 🎨 Koenig - Added ID attributes to heading tags when rendering (#9720)
refs https://github.com/TryGhost/Ghost/issues/9623

- added `DomModifier` class to walk a SimpleDom document and modify as needed
  - adds `id` attributes to `h1`, `h2`, etc heading tags
    - converts H* tag content to a dasherized string for the id attribute (dasherized id's are different to the smushed ids that are generated by our markdown converted but there are no backwards-compatibility concerns here)
    - if a duplicate id is detected then add a `-1`, `-2`, etc suffix to the id
- use `DomModifier` after converting mobiledoc to SimpleDom but before serialising to html
- switched top-level var declarations to es6
2018-07-11 00:03:25 +02:00
..
functional Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
integration Dynamic Routing Beta: Added ability to disable+override rss (#9693) 2018-06-26 01:33:29 +02:00
unit 🎨 Koenig - Added ID attributes to heading tags when rendering (#9720) 2018-07-11 00:03:25 +02:00
utils Dynamic Routing Beta: Added ability to disable+override rss (#9693) 2018-06-26 01:33:29 +02:00
.eslintrc.json ESlint rule: no-multiple-empty-lines 2017-11-06 10:12:18 +00:00
.jshintrc Remove jshint rules that are no longer supported 2015-01-23 21:00:37 +00:00