Compare commits
	
		
			2 Commits
		
	
	
		
			b016f77c51
			...
			0330c0ec71
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0330c0ec71 | |||
| bc031e8639 | 
							
								
								
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -1,12 +1,12 @@ | |||||||
| { | { | ||||||
|   "name": "@doc-utils/markdown2html", |   "name": "@doc-utils/markdown2html", | ||||||
|   "version": "0.3.1", |   "version": "0.3.2", | ||||||
|   "lockfileVersion": 2, |   "lockfileVersion": 2, | ||||||
|   "requires": true, |   "requires": true, | ||||||
|   "packages": { |   "packages": { | ||||||
|     "": { |     "": { | ||||||
|       "name": "@doc-utils/markdown2html", |       "name": "@doc-utils/markdown2html", | ||||||
|       "version": "0.3.1", |       "version": "0.3.2", | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
|         "bytefield-svg": "^1.6.1", |         "bytefield-svg": "^1.6.1", | ||||||
|         "dompurify": "^2.3.6", |         "dompurify": "^2.3.6", | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@doc-utils/markdown2html", |   "name": "@doc-utils/markdown2html", | ||||||
|   "version": "0.3.1", |   "version": "0.3.2", | ||||||
|   "publishConfig": { |   "publishConfig": { | ||||||
|     "registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/" |     "registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -29,7 +29,7 @@ export function create_renderer(opts: MarkdownOptions) { | |||||||
|  |  | ||||||
| function heading(renderer: marked.Renderer, opts: MarkdownOptions) { | function heading(renderer: marked.Renderer, opts: MarkdownOptions) { | ||||||
| 	return function(orig_text: string, level: 1 | 2 | 3 | 4 | 5 | 6, raw: string) { | 	return function(orig_text: string, level: 1 | 2 | 3 | 4 | 5 | 6, raw: string) { | ||||||
| 		let { text, id, html_attrs } = parse_attributes(raw); | 		let { text, id, html_attrs } = parse_attributes(orig_text); | ||||||
| 		if (id) { | 		if (id) { | ||||||
| 			text += `\n<a class="heading-anchor" href="#${id}">` | 			text += `\n<a class="heading-anchor" href="#${id}">` | ||||||
| 				+ `\n\t\t${icons.link}` | 				+ `\n\t\t${icons.link}` | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user