Skip to content

Commit

Permalink
remove BR elements before converting to markdown (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored Sep 28, 2024
1 parent 54e426c commit 8cebec2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OneMore/Commands/Edit/ConvertMarkdownCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ public override async Task Execute(params object[] args)

var filepath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());

var text = reader.ReadTextFrom(paragraphs, allContent);
var text = reader
.ReadTextFrom(paragraphs, allContent)
.Replace("<br>", string.Empty);

var body = OneMoreDig.ConvertMarkdownToHtml(filepath, text);

editor.InsertAtAnchor(new XElement(ns + "HTMLBlock",
Expand Down

0 comments on commit 8cebec2

Please sign in to comment.