Commit Graph

26 Commits

Author SHA1 Message Date
Tom Alexander
c4762510f4 Handle unicode.
Turns out javascript iterates over strings by character, but all the string functions like slicing, lastIndexOf, and indexing with [] are all based on codepoints without taking into account surrogate pairs like orange heart. It would have been nice if that was mentioned in the documentation...
2023-08-18 23:32:21 -04:00
Tom Alexander
372542d914 Add a print to announce the server is running. 2023-08-18 22:32:01 -04:00
Tom Alexander
0d6621d389 Add docker. 2023-08-18 22:26:42 -04:00
Tom Alexander
e96c39e3e0 Add a README. 2023-08-18 21:35:39 -04:00
Tom Alexander
9032b00e1b Fix handling of plain text. 2023-08-18 21:22:53 -04:00
Tom Alexander
acdc8b8993 Highlighting characters. 2023-08-18 21:06:43 -04:00
Tom Alexander
676dffa15f Rendering ast tree. 2023-08-18 19:23:31 -04:00
Tom Alexander
ab836f2794 Switch to returning the whole tree from rust instead of just the lists. 2023-08-18 19:11:51 -04:00
Tom Alexander
0ee33949e9 Beginning of rendering the ast list. 2023-08-18 18:32:23 -04:00
Tom Alexander
27a2bea705 Split the output so I can have a tree. 2023-08-18 17:40:19 -04:00
Tom Alexander
4fb203c1db Putting in new-line characters in the empty lines has fixed copy+paste and made the min-height css unnecessary. 2023-08-18 17:20:45 -04:00
Tom Alexander
51b4eed034 Beginning the render the parsed content. 2023-08-18 17:10:55 -04:00
Tom Alexander
c3be0f249d Minor style improvements. 2023-08-18 16:26:05 -04:00
Tom Alexander
13fab742e5 Add a sample output code block. 2023-08-18 16:19:37 -04:00
Tom Alexander
893de9a65e Set cache control headers for the static files. 2023-08-18 15:50:22 -04:00
Tom Alexander
bff0a62291 Change response to impl IntoResponse. 2023-08-18 15:41:23 -04:00
Tom Alexander
c24c5ee54e POSTing the body to the server. 2023-08-18 15:41:06 -04:00
Tom Alexander
91e9645c37 Recursing through the ast to find the lists. 2023-08-17 05:18:51 -04:00
Tom Alexander
4b9e84375e Starting to iterate through the token tree. 2023-08-17 04:34:44 -04:00
Tom Alexander
371d74e691 Import s-expression parser from organic. 2023-08-17 03:53:02 -04:00
Tom Alexander
40bf188c5a Starting the owner tree module. 2023-08-17 03:42:18 -04:00
Tom Alexander
65aba3c993 Convert emacs wrapper to tokio's Command. 2023-08-17 03:34:49 -04:00
Tom Alexander
0d2a13739a Import the emacs wrapper from organic. 2023-08-17 03:25:12 -04:00
Tom Alexander
0331c06875 Minimal structure for the web server. 2023-08-17 03:21:43 -04:00
Tom Alexander
cfa6e7e5ba Add axum, nom, and tokio. 2023-08-17 02:55:59 -04:00
Tom Alexander
e491ed23ea Initial commit. 2023-08-17 02:52:58 -04:00