Commit Graph

8 Commits

Author SHA1 Message Date
Penar Musaraj ed6634f6a4
DEV: Fix tests (#51)
Core now needs tests to set a default composer category.
2023-01-02 11:07:50 +01:00
Vinoth Kannan 55f83a913c
FEATURE: new theme setting to disable TOC in posts with less headings. (#47)
The theme setting `TOC_min_heading` will decide whether the TOC should display or not based on the number of headings available in the post.
2022-11-04 09:41:16 +05:30
Jarek Radosz f80c215a28
SECURITY: Render TOC items as plain text (#44) 2022-10-03 21:10:05 +02:00
Joe 58a1400f55
FEATURE: Automatically add TOC based on topic category / tags (#42)
This PR adds two settings.

One allows admins to select a list of categories that will automatically enable the TOC if the topic category matches.
The other does the same but with tags.

Note that the topic still needs to have the other requirements for TOC, such as having headings. Also, this will still only apply to the first post.

This PR also moves some setting descriptions to the appropriate place.

It also uses `pretender` for the tests instead of generating the fixture manually.
2022-07-26 01:23:19 +08:00
Jarek Radosz 7b3c12ae15
DEV: Update CI workflows (#39) 2022-06-17 18:20:09 +02:00
Penar Musaraj c658e95d54
FIX: Generate unique IDs for non-Latin languages (#36) 2022-05-05 14:25:37 -04:00
Penar Musaraj 86b9960263
FIX: Allow adding TOC when editing first post (#20) 2022-01-18 09:52:51 -05:00
Penar Musaraj 20366c671d
REFACTOR: General component overhaul (#19) 2022-01-18 09:18:21 -05:00