feat: plugin for remark-breaks (#467)
* feat: plugin for remark-breaks * fix: update package-lock.json * fix: styling Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com> * Update linebreaks.ts * Update index.ts --------- Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
		
							parent
							
								
									a66c239797
								
							
						
					
					
						commit
						4e23e67244
					
				
					 4 changed files with 41 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -8,3 +8,4 @@ export { ObsidianFlavoredMarkdown } from "./ofm"
 | 
			
		|||
export { OxHugoFlavouredMarkdown } from "./oxhugofm"
 | 
			
		||||
export { SyntaxHighlighting } from "./syntax"
 | 
			
		||||
export { TableOfContents } from "./toc"
 | 
			
		||||
export { HardLineBreaks } from "./linebreaks"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										11
									
								
								quartz/plugins/transformers/linebreaks.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								quartz/plugins/transformers/linebreaks.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
import { QuartzTransformerPlugin } from "../types"
 | 
			
		||||
import remarkBreaks from "remark-breaks"
 | 
			
		||||
 | 
			
		||||
export const HardLineBreaks: QuartzTransformerPlugin = () => {
 | 
			
		||||
  return {
 | 
			
		||||
    name: "HardLineBreaks",
 | 
			
		||||
    markdownPlugins() {
 | 
			
		||||
      return [remarkBreaks]
 | 
			
		||||
    },
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue