Repository navigation
Commit 082d589
feat(ai): add mermaid support to markdown (#780)
* feat(ai): add mermaid support to markdown
* Update extensions/github1s-ai/src/webview/components/Markdown.ts
Co-authored-by: Siddhant Khare <Siddhantkhare2694@gmail.com>
* Update extensions/github1s-ai/src/webview/components/Markdown.ts
Co-authored-by: Siddhant Khare <Siddhantkhare2694@gmail.com>
* fix(ai): stabilize Mermaid rendering
* fix(ai): sync Mermaid toggle with the visible view
- Derive the toggle label from what is shown, disable it while a
render is pending, and reset the selection when rendering fails so
the next click retries.
- Debounce re-renders while the source of an open diagram is still
streaming, which avoids flicker and a render per token.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Siddhant Khare <Siddhantkhare2694@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 4508751 commit 082d589
7 files changed
Lines changed: 1429 additions & 135 deletions
File tree
- extensions/github1s-ai
- assets
- src
- webview
- components
- helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
878 | | - | |
| 878 | + | |
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
892 | | - | |
893 | | - | |
| 892 | + | |
| 893 | + | |
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
| 902 | + | |
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
| 907 | + | |
| 908 | + | |
908 | 909 | | |
909 | 910 | | |
910 | 911 | | |
911 | 912 | | |
912 | 913 | | |
913 | 914 | | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
914 | 931 | | |
915 | 932 | | |
916 | 933 | | |
| |||
0 commit comments