A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: do not replace newlines with br when pasting
Abdullah Atta511c40db5cf1
diff --git a/packages/editor/src/utils/html.ts b/packages/editor/src/utils/html.tsindex 7129d7ce9..b0c35e28a 100644--- a/packages/editor/src/utils/html.ts+++ b/packages/editor/src/utils/html.ts@@ -17,11 +17,10 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/+import { encodeNonAsciiHTML } from "entities";+export function convertBrToParagraph(html: string) {- const doc = new DOMParser().parseFromString(- convertNewlinesToBr(html),- "text/html"- );+ const doc = new DOMParser().parseFromString(html, "text/html");for (const br of doc.querySelectorAll("br")) {let paragraph = br.closest("p");