Skip to content

Commit 0da6ca8

Browse files
committed
add more comment to explain this weirdness
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 99923b7 commit 0da6ca8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/vector/platform/ElectronPlatform.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
8686
// Electron Docs state all supported linux notification systems follow this markup spec
8787
// https://github.com/electron/electron/blob/master/docs/tutorial/desktop-environment-integration.md#linux
8888
// maybe we should pass basic styling (italics, bold, underline) through from MD
89+
// we only have to strip out < and > as the spec doesn't include anything about things like &amp;
90+
// so we shouldn't assume that all implementations will treat those properly. Very basic tag parsing is done.
8991
if (window.process.platform === 'linux') {
9092
msg = msg.replace(/</g, "&lt;").replace(/>/g, "&gt;");
9193
}

0 commit comments

Comments
 (0)