Commit graph

17 commits

Author SHA1 Message Date
32a1486840
Ensure captions are optional 2022-08-20 18:38:28 +01:00
09c4b93245
Add typed table block 2022-08-19 13:48:45 +01:00
11932fa49e
Don't show code in plaintext 2022-07-29 09:11:04 +01:00
feba307de7
Add mermaid embed 2022-07-15 10:10:37 +01:00
72ac1bc1da
Add reusable referral links 2022-07-14 22:02:01 +01:00
ef9128313d
Add a tangent block 2022-07-05 09:03:45 +01:00
ccb481726c
Optimise getting content HTML by only parsing the necessary tags 2022-07-04 18:55:18 +01:00
66ccd52b15
Don't allow H1 tags to be used
These should be for the page title only
2022-07-04 09:28:09 +01:00
4702afd5dd
Reduce complexity trying to save computation on rendering streamfield
This replaces more custom iteration with caching, which will end up faster anyway, and is more drop-in with the new structure.

Sadly it still renders the content twice, as `get_content_html` requires access to the blocks.
2022-07-03 23:10:57 +01:00
af2dba84cd
Get table of contents from body 2022-06-30 23:27:50 +01:00
8a7dba4ca0
Use bs4 to extract plain text from HTML
It's slower, but it keeps spaces between tags, which is what we want.
2022-06-30 21:32:47 +01:00
a1d72c122a
Add code block 2022-06-27 23:29:55 +01:00
72f9374c03
Add image figure block 2022-06-27 20:40:55 +01:00
38c4c695cf
Setup features for richtext 2022-06-27 19:58:08 +01:00
2012b245a8
Add summary to content 2022-06-26 19:52:20 +01:00
299a6342cc
Add basic word count and reading time 2022-06-26 19:25:30 +01:00
b7163c3076
Create basic streamfield 2022-06-26 18:37:04 +01:00