Repository navigation
Commit 4306d6b
committed
feat(web): block-level Markdown in the rich text composer
The rich text composer styled words but not blocks: fences, lists, quotes,
rules and headings stayed literal text. Each is now a node that keeps its
exact Markdown delimiters as attributes, so the stored draft stays
byte-identical to what was typed. Fences get chat's code block frame, syntax
highlighting (skipped above 20k characters), a language picker in the header,
indentation handling and verbatim paste. Blocks form only at a top-level
paragraph, and Tiptap's block chords are removed, because the serializer has
no line for a block nested anywhere else.1 parent a3abb52 commit 4306d6b
21 files changed
Lines changed: 2772 additions & 137 deletions
File tree
- apps/web
- src
- components
- chat
- docs
- internals
- user
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
901 | 958 | | |
902 | 959 | | |
903 | 960 | | |
| |||
1007 | 1064 | | |
1008 | 1065 | | |
1009 | 1066 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1023 | 1073 | | |
1024 | 1074 | | |
1025 | 1075 | | |
| |||
1073 | 1123 | | |
1074 | 1124 | | |
1075 | 1125 | | |
1076 | | - | |
| 1126 | + | |
| 1127 | + | |
1077 | 1128 | | |
1078 | | - | |
| 1129 | + | |
1079 | 1130 | | |
1080 | 1131 | | |
1081 | 1132 | | |
| |||
0 commit comments