Evan Simkowitz
76d5288aba
apply slug after sanitize
2024-09-09 11:58:55 -07:00
Evan Simkowitz and GitHub
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 and GitHub
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 and GitHub
566bf461ff
implement img streaming (local and remote) for markdown ( #348 )
2024-09-06 12:59:28 -07:00
Red J Adaya and GitHub
a00dc5682e
connection status overlay ( #337 )
2024-09-06 10:33:26 -07:00
Evan Simkowitz and GitHub
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
Red J Adaya and GitHub
9a361d21d5
responsive typeahead modal ( #324 )
2024-09-05 14:38:36 -07:00
Evan Simkowitz and GitHub
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
Mike Sawka and GitHub
e3b7ab73c0
preview refactor for keyboard/focus ( #303 )
2024-09-02 16:48:10 -07:00
Red J Adaya and GitHub
63cfe1d279
preview edit ( #302 )
2024-08-31 11:57:45 -07:00
Evan Simkowitz
be1ce1f71e
add delay to the magnify transition so I can actually see the animation
2024-08-30 17:45:37 -07:00
Evan Simkowitz
ef95fd20ed
remove magnify.less prefers-reduced-motion query
2024-08-30 12:52:58 -07:00
Red J Adaya and GitHub
c440fb774e
suggestions UI ( #286 )
2024-08-28 23:47:45 -07:00
Red J Adaya and GitHub
b9c87a0ce3
hide when Enter is pressed ( #262 )
2024-08-23 09:46:04 -07:00
Red J Adaya and GitHub
c1684d28d1
suggestions modal ( #260 )
2024-08-23 00:18:49 -07:00