Mike Sawka
c1c90bb4f8
browser view ( #1005 )
2024-10-17 14:34:02 -07:00
Evan Simkowitz
d2b2491211
Add markdown alert parsing, fix buffer issue when switching files ( #988 )
...
Adds the GitHub alert syntax parsing to the markdown element, fixes an
issue where the file edit buffer was not getting unset when the file
path changed, continues my crusade on star imports
2024-10-08 09:25:41 -07:00
Mike Sawka
447596b5e7
new config preview:showhiddenfiles and term:theme ( #981 )
2024-10-07 14:08:57 -07:00
Red J Adaya
28ca193c19
Add 'scrollable' prop to Markdown component for better control over scrolling behavior ( #964 )
...
The scrollable prop controls if ScrollbarOverlay is added to the
Markdown component.
2024-10-06 13:30:02 -07:00
Mike Sawka
3939648bbb
fe wsh router + wsh client impl ( #381 )
2024-09-16 11:59:39 -07:00
Evan Simkowitz
29db989623
Revert "Keep changes in preview after save ( #360 )"
...
This reverts commit 13ac6af4d0
.
2024-09-10 14:27:11 -07:00
Evan Simkowitz
13ac6af4d0
Keep changes in preview after save ( #360 )
...
A bit hacky, but should allow preview to update to latest file contents
after save
2024-09-10 13:37:30 -07:00
Evan Simkowitz
0d040f1155
use regular@ syntax for icon button class
2024-09-09 12:38:49 -07:00
Evan Simkowitz
9e3c9f9253
Make IconButton its own element, move CopyButton to use it ( #357 )
2024-09-09 12:35:53 -07:00
Evan Simkowitz
1cf3671ac4
remove classname from copybutton since it's already applied by default
2024-09-09 12:01:57 -07:00
Evan Simkowitz
76d5288aba
apply slug after sanitize
2024-09-09 11:58:55 -07:00
Evan Simkowitz
7c45b3679f
Add syntax highlighting to the Markdown element ( #356 )
...
Also fixes the styling for the copy button
2024-09-09 11:56:21 -07:00
Evan Simkowitz
5e80aeb22a
remove unnecessary callback
2024-09-07 11:20:28 -07:00
Evan Simkowitz
f2050f6155
use built-in slug prefix
2024-09-07 11:18:38 -07:00
Evan Simkowitz
97b9760109
make internal heading links work
2024-09-07 11:10:10 -07:00
Evan Simkowitz
b08af477bf
fix typing some more
2024-09-07 11:01:46 -07:00
Evan Simkowitz
910683a825
clean up typing for markdown, add focusedHeading state for future links work
2024-09-07 10:59:33 -07:00
Evan Simkowitz
1591a0ca26
fix extern links md
2024-09-06 17:30:19 -07:00
Evan Simkowitz
cab701d3ea
fix resolveOpts props error in md image
2024-09-06 17:23:30 -07:00
Evan Simkowitz
6117929081
fix links in md preview when there's more than one heading with same name
2024-09-06 17:11:11 -07:00
Evan Simkowitz
1a7fb41182
Add back memoization for toc
2024-09-06 16:32:29 -07:00
Evan Simkowitz
bd43a4b61d
clean up imports for markdown
2024-09-06 15:19:15 -07:00
Evan Simkowitz
9f5ccddad2
Improve markdown TOC scrolling ( #349 )
...
Use a better system for scrolling using scrollTo on the
OverlayScrollbars ref. This lets me get the heading as close to the top
of the viewport as possible without the convoluted CSS tricks I was
trying before.
2024-09-06 15:11:46 -07:00
Mike Sawka
566bf461ff
implement img streaming (local and remote) for markdown ( #348 )
2024-09-06 12:59:28 -07:00
Evan Simkowitz
015ebf5dd5
Make textAtom and showTocAtom in Markdown element optional ( #331 )
...
Fix backwards-compatibility for the Markdown element by adding back the option to pass text directly to the element and make atom parameters optional.
2024-09-05 15:35:57 -07:00
Evan Simkowitz
072730f7eb
Table of contents for markdown preview ( #323 )
...
Adds a table of contents in the markdown preview, with a button in the
header to toggle whether to show the TOC. When a user clicks one of the
TOC elements, the preview will scroll to the corresponding heading.
I've also cleaned up some MD preview styling that was inconsistent and
causing the preview to overflow unnecessarily. This also fixes some
terminology in the preview code.
<img width="574" alt="image"
src="https://github.com/user-attachments/assets/abb18ba9-21d3-4315-bdc3-e4bdcca39a4c ">
2024-09-04 21:15:39 -07:00
Red J Adaya
1f973b3fdc
WaveAI ( #93 )
2024-07-03 14:32:55 -07:00
Evan Simkowitz
c49050f6ed
Fix prettier formatting
2024-05-28 12:12:28 -07:00
sawka
1db615bb3a
markdown preview
2024-05-14 09:37:41 -07:00