Skip to content

Commit

Permalink
Preserve newlines when parsing calendar descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumManiac committed Feb 6, 2024
1 parent 22962f5 commit 5fcd7f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/calendarDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export function parseDescriptionFromHtml(description: string): string {
// TODO parse description as markdown potentially - would allow for slack to have more formatting
const plainDescription = convert(description, {
wordwrap: false,
preserveNewlines: true,
selectors: [{ selector: "a", options: { ignoreHref: true } }],
});

Expand Down

0 comments on commit 5fcd7f6

Please sign in to comment.