File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ class Renderer {
325325 return text ;
326326 }
327327 this . links . push ( { link : href , style : "md" , position } ) ;
328- href = href . replace ( / \. m a l l o y n b $ / , "" ) ;
328+ href = href . replace ( / \. m a l l o y n b $ / , "" ) . replace ( / \. m a l l o y n b # / , "#" ) ;
329329 let out = href . startsWith ( "/" )
330330 ? `<a href="${ DEFAULT_CONTEXT . site . baseurl } ${ href } "`
331331 : `<a href="${ href } "` ;
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ for (const result of results) {
179179 linkElement . innerHTML = title ;
180180 linkElement . href =
181181 result . segment . path
182- . replace ( ".malloynb" , ".html " ) + ( index > 0 ? "#" + anchor : "" ) ;
182+ . replace ( ".malloynb" , "" ) + ( index > 0 ? "#" + anchor : "" ) ;
183183 highlight ( linkElement , query ) ;
184184 headingElement . appendChild ( linkElement ) ;
185185 if ( index != result . segment . titles . length - 1 ) {
You can’t perform that action at this time.
0 commit comments