Ghost/core/server/lib
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
..
common 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
fs 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
image 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
mobiledoc 🎨 Koenig - Added ID attributes to heading tags when rendering (#9720) 2018-07-11 00:03:25 +02:00
promise Moved pipeline/sequence to lib/promise 2017-12-13 22:20:02 +01:00
security Dynamic Routing: Added migration for routes.yaml file (#9692) 2018-06-22 20:28:01 +02:00
social 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
constants.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
ghost-version.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
request.js Removed bluebird promise wrap in request lib (#9343) 2018-01-02 12:18:56 +01:00