11use std:: borrow:: Cow ;
22
3- use jotdown :: r#async:: { AsyncRender , AsyncRenderOutput } ;
4- use jotdown :: { AttributeKind , AttributeValue , Attributes , Container , Event } ;
3+ use jotup :: r#async:: { AsyncRender , AsyncRenderOutput } ;
4+ use jotup :: { AttributeKind , AttributeValue , Attributes , Container , Event } ;
55use rostra_client:: ClientRef ;
66use rostra_core:: id:: RostraId ;
77
4242
4343 async fn emit ( & mut self , event : Event < ' s > ) -> Result < ( ) , Self :: Error > {
4444 match event {
45- Event :: Start ( Container :: Link ( s, jotdown :: LinkType :: AutoLink ) , attr) => {
45+ Event :: Start ( Container :: Link ( s, jotup :: LinkType :: AutoLink ) , attr) => {
4646 if let Some ( rostra_id) = UiState :: extra_rostra_id_link ( & s) {
4747 let display_name = self
4848 . client
5656 . emit ( Event :: Start (
5757 Container :: Link (
5858 format ! ( "/ui/profile/{rostra_id}" ) . into ( ) ,
59- jotdown :: LinkType :: Span ( jotdown :: SpanLinkType :: Inline ) ,
59+ jotup :: LinkType :: Span ( jotup :: SpanLinkType :: Inline ) ,
6060 ) ,
6161 attr,
6262 ) )
6565 self . container_stack . push ( ContainerKind :: Other ) ;
6666 self . inner
6767 . emit ( Event :: Start (
68- Container :: Link ( s, jotdown :: LinkType :: AutoLink ) ,
68+ Container :: Link ( s, jotup :: LinkType :: AutoLink ) ,
6969 attr,
7070 ) )
7171 . await
@@ -132,7 +132,7 @@ enum ImageTransform<'s> {
132132 /// External embeddable media (YouTube, etc.) - stores the HTML and alt text
133133 EmbeddableMedia ( String , String ) ,
134134 /// Regular external image - stores the URL, link type, and alt text
135- ExternalImage ( Cow < ' s , str > , jotdown :: SpanLinkType , String ) ,
135+ ExternalImage ( Cow < ' s , str > , jotup :: SpanLinkType , String ) ,
136136}
137137
138138/// Filter that transforms images:
@@ -174,7 +174,7 @@ where
174174 . emit ( Event :: Start (
175175 Container :: Image (
176176 format ! ( "/ui/media/{}/{}" , self . author_id, event_id) . into ( ) ,
177- jotdown :: SpanLinkType :: Inline ,
177+ jotup :: SpanLinkType :: Inline ,
178178 ) ,
179179 attr,
180180 ) )
@@ -198,7 +198,7 @@ where
198198 Container :: Div {
199199 class : "lazyload-wrapper" . into ( ) ,
200200 } ,
201- jotdown :: Attributes :: try_from (
201+ jotup :: Attributes :: try_from (
202202 "{ onclick=\" this.classList.add('-expanded')\" }" ,
203203 )
204204 . expect ( "Can't fail" ) ,
0 commit comments