Commit graph

43 commits

Author SHA1 Message Date
7bacc72463 Don't generate section anchor for h1, the title of the whole page. 2023-06-04 14:17:02 -07:00
e6f6cf4aed Remove unnecessary function dump_file. 2023-02-22 18:03:03 -08:00
270952f1ce Change paragraph symbol to section symbol. Add checkbox rules. 2023-01-15 16:00:41 -08:00
2e68c0bba7
Add .. link. 2022-04-07 13:48:38 -07:00
5cd856073c
Use betterhelp. 2022-04-07 13:48:26 -07:00
bb8618b414
Hotfix to stop subreddit and redditor rules inside links. 2022-04-07 13:18:28 -07:00
aaa7a9bdb1
Only add loading=lazy if I didn't already specify it on the img. 2022-04-07 11:41:14 -07:00
0261f7ebdd
Update usage of pathclass. 2021-12-07 23:16:13 -08:00
4049fd333c
Explicitly delete content-type when mime isn't sure.
Otherwise flask sends text/html by default.
2021-11-14 16:55:17 -08:00
0081dbb40b
Ensure that the 'text' rule is always last. 2021-11-14 15:39:50 -08:00
1be7664c6d
Reduce priority of subreddit, redditor markdown rules.
So that you can put /r/ inside of a link []() and the link
takes precedence.
2021-10-10 11:45:00 -07:00
b1627517c8
Add fix_decorator_classes. 2021-09-24 16:18:14 -07:00
ada3fc4caa
Fix argument_call_classes breaking on "==". 2021-09-24 16:18:00 -07:00
69115df3f6
Add youtube_embed markdown. 2021-06-13 23:23:43 -07:00
63309cbc82
Fix escaping of carets by overriding escape pattern. 2021-06-10 19:08:01 -07:00
1f7c31899a
Fix dash spacer for nested quotes and other indented blocks. 2021-05-17 17:03:12 -07:00
b6c14d0a61 Remove print statement. 2020-11-22 15:23:15 -08:00
Ethan Dalool
8dc7cfa21b Use requests.Session for embedded images. 2020-11-10 20:23:34 -08:00
Ethan Dalool
c76bfec549 Set loading=lazy on images. 2020-11-04 16:31:08 -08:00
Ethan Dalool
d91fcf121b Use pathclass.cwd. 2020-09-22 01:56:49 -07:00
Ethan Dalool
c1a6ddd5f1 Somewhat improve superscript parentheses, including nested parens.
I was able to get a single nested pair inside the super, but I
can't quite figure out how to get arbitrary nesting. This is good
enough for me to put a link in a super though, which is what I needed.
2020-09-05 13:07:21 -07:00
Ethan Dalool
ce2141dfbc Remove print statement that slipped past intensive code review.
I swear.
2020-09-01 16:42:00 -07:00
Ethan Dalool
0fa2aff267 Add block parser for ^-$ that splits otherwise same tags.
This can be used to separate two blockquotes, code blocks, etc by
forcing the close of the previous tag and beginning of a new one.
2020-08-31 21:25:54 -07:00
Ethan Dalool
ab83996acf Add skewer-case aliases for snake_case arguments. 2020-08-13 14:40:47 -07:00
Ethan Dalool
a7ac4291bb Fix missing warnings import. 2020-07-11 16:24:48 -07:00
Ethan Dalool
3e979b25d3 Put the article text into <article>, adjust CSS accordingly. 2020-06-11 10:12:39 -07:00
Ethan Dalool
644f801e03 Turn footnote [x] into two-way <a> tags with hover text. 2020-06-04 10:59:26 -07:00
Ethan Dalool
f48078c83a Send 404 instead of 500 for FileNotFoundError. 2020-06-04 10:51:06 -07:00
Ethan Dalool
21cd407070 Add device scale meta to md directory listing pages. 2020-06-04 10:50:42 -07:00
Ethan Dalool
f7eecfd7a5 Improve subreddit/redditor markdown regex. 2020-05-25 20:59:55 -07:00
Ethan Dalool
25d4f70377 Add soup cleaner fix_reddit_links to old.reddit.com.
Just in case I forget to type it as such in the document itself.
2020-05-20 09:19:07 -07:00
Ethan Dalool
082040beac Replace multiple underscores with single underscore in anchor slugs. 2020-05-19 21:58:25 -07:00
Ethan Dalool
137c48463e Add warning if footnote link and text counts mismatch. 2020-04-02 20:20:46 -07:00
Ethan Dalool
4147020aa4 Add markdown rules for redditor, subreddit. 2020-04-02 20:19:37 -07:00
Ethan Dalool
093611e527 In the vmarkdown server, list directories before files. 2020-03-27 23:23:49 -07:00
Ethan Dalool
2d717ceeb2 Fix table of contents lines not having text of formatted headers.
If the header was called "Hello *world*" then the toc would only
say Hello because the toc generator wasn't getting the text of child
elements. This fixes that at the expense of having to cut the paragraph
sign back off.
2020-03-27 19:11:02 -07:00
Ethan Dalool
d45ca1ef38 Add auto-incrementing [footnote_link] and [footnote_text]. 2020-03-23 16:47:04 -07:00
Ethan Dalool
f1e6791364 Support superscript in markdown. 2020-03-23 13:02:57 -07:00
Ethan Dalool
b14a06c1eb Format some long lines. 2020-03-19 12:22:00 -07:00
Ethan Dalool
13d5534dc0 Remove dumb template arg, do it on caller's end, pass in text not path. 2020-03-19 11:59:28 -07:00
Ethan Dalool
b6a9149499 Fix leading spaces on <pre> code inside lists, hopefully. 2020-03-15 01:55:31 -07:00
Ethan Dalool
f0ca7f7382 Don't add toc if there are no headers besides title. 2020-03-14 22:54:41 -07:00
Ethan Dalool
aed1ca2a3d Add my writing framework.
It's still VERY VERY MESSY and will probably stay that way
for a long time aka forever.
2020-03-14 21:40:36 -07:00