feat: wikilinks implementation
This commit is contained in:
		
							parent
							
								
									4fd983277e
								
							
						
					
					
						commit
						c117e38899
					
				
					 5 changed files with 41 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -11,6 +11,7 @@ function initPopover(baseURL) {
 | 
			
		|||
    fetchData.then(({ content }) => {
 | 
			
		||||
      const links = [...document.getElementsByClassName("internal-link")]
 | 
			
		||||
      links.forEach(li => {
 | 
			
		||||
        console.log(li.dataset)
 | 
			
		||||
        const linkDest = content[li.dataset.src.replace(basePath, "")]
 | 
			
		||||
        if (linkDest) {
 | 
			
		||||
          const popoverElement = `<div class="popover">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue