mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: use newline_boundaries param for tokenizer during title and summary generation, attempt to serve HTML in summary generation
This commit is contained in:
		| @@ -156,7 +156,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => { | ||||
|  | ||||
| 		// mainPid ok to leave as-is | ||||
| 		if (!title) { | ||||
| 			const sentences = tokenizer.sentences(content || sourceContent, { sanitize: true }); | ||||
| 			const sentences = tokenizer.sentences(content || sourceContent, { sanitize: true, newline_boundaries: true }); | ||||
| 			title = sentences.shift(); | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user