cal.pub0.org/packages/lib/turndownService.ts

13 lines
235 B
TypeScript

import TurndownService from "turndown";
const turndownService = new TurndownService();
turndownService.addRule("newLine", {
filter: ["br"],
replacement: () => {
return "<p><br></p>";
},
});
export default turndownService;