Commit Graph

33 Commits

Author SHA1 Message Date
Ben Visness fbfe804b83 Move parsing utilities to a separate file 2022-09-10 11:13:05 -05:00
Ben Visness 18994a2ae6 Revert bbcode; restrict scope of ggcode 2022-09-10 11:09:04 -05:00
Ben Visness 42574ca847 Fix tests 2022-09-10 10:39:19 -05:00
Ben Visness 6cec54f8cc Add editor's notes 2022-09-10 10:25:33 -05:00
Ben Visness 9ffc64fcf3 Add education resource ggcode stuff! 2022-09-10 09:54:19 -05:00
Ben Visness 9e353c715f Get inline stuff kinda working
I think I'll have to sort out delimiters or something...gross
2022-09-03 20:35:21 -05:00
Ben Visness 7268b6011a ggcode is online 2022-09-03 19:12:19 -05:00
Ben Visness 5b1bf5951a fuck goldmark 2022-09-01 22:02:59 -05:00
Ben Visness 98b9ef6589 Add education-specific extensions
not all of them yet
2022-09-01 20:16:09 -05:00
Ben Visness 7ea11ebd51 Bam that's the rest of the todo list 2022-08-06 23:43:15 -05:00
Asaf Gartner 80f0e3b176 MD text renderer: handle backslashes
Handles the same characters as the html renderer.
2021-12-26 11:36:12 +02:00
Ben Visness 1f39b166cb Make many improvements and fixes to the markdown experience 2021-09-01 01:15:13 -05:00
Ben Visness bc39b4c0b7 Clean up TODOs 2021-08-28 12:07:45 -05:00
Ben Visness 16ae2188d1 Add background features to the Discord bot 2021-08-26 22:59:12 -05:00
Ben Visness 8ecb4a7173 Rework the category/thread data model
Threads can stand alone now. Threads can be attached to resources
directly without requiring a category. In addition, a lot of wiki stuff
and library discussion stuff was deleted because we're not gonna port
it.
2021-07-29 22:49:24 -05:00
Ben Visness 9b9d467ce4 Add CLRI/TLRI handling 2021-07-23 14:00:37 -05:00
Ben Visness a9d39cd969 Make the bbcode parser much faster 2021-07-17 21:42:52 -05:00
Ben Visness 059f407ee4 Put previews in a web worker to help with slower parsing 2021-07-17 18:20:47 -05:00
Ben Visness 98df5773a5 Use a fork of goldmark that doesn't crash Chrome 2021-07-06 22:00:49 -05:00
Ben Visness 6b21291798 Add plain-text post previews
I opted to do this by making a new markdown renderer that only outputs
plain text, no HTML. This feels a lot more sane to me than trying to
strip HTML out of already-parsed stuff. The tradeoff right now is that
some content just doesn't show up at all, notably bbcode content. I
doubt anyone will care.
2021-07-05 13:34:51 -05:00
Ben Visness e7cee4c448 Fix renamed URL function 2021-07-04 15:32:06 -05:00
Ben Visness 9d6f64fa00 Add syntax highlighting and styling for code blocks 2021-07-04 15:32:06 -05:00
Ben Visness 2f37e07100 Add quotes and a half-assed code tag 2021-07-04 15:32:01 -05:00
Ben Visness 6e7a398dee Add simple bbcode tags 2021-07-04 15:31:58 -05:00
Ben Visness efdc2216f9 Add [youtube] tags to bbcode 2021-07-04 15:31:55 -05:00
Ben Visness 540d1765db Get bbcode working in Goldmark 2021-07-04 15:31:53 -05:00
Ben Visness 085bd46440 Add mathjax 2021-07-04 15:31:51 -05:00
Ben Visness 4d9ef5917e Don't require !embed, use placeholders in previews 2021-07-04 15:31:47 -05:00
Ben Visness f1ccbc53d7 Convert embed stuff to a block parser
Now I know how to do block parsers!
2021-07-04 15:31:45 -05:00
Ben Visness 643f145071 Add !embed(...) syntax 2021-07-04 15:31:44 -05:00
Ben Visness 987d379223 Add spoilers (and broken jank starter bbcode) 2021-07-04 15:31:41 -05:00
Ben Visness 08f20f9fed Get markdown working in WASM 2021-07-04 15:31:40 -05:00
Ben Visness 00b0383030 Start forum editing experience, including bbcode parser 2021-07-04 15:31:37 -05:00