diff --git a/src/Services/Page.vala b/src/Services/Page.vala
index 18730726..95b407a8 100644
--- a/src/Services/Page.vala
+++ b/src/Services/Page.vala
@@ -267,9 +267,11 @@ public class ENotes.PageTable : DatabaseTable {
private bool bold_state;
private bool italics_state;
+ private bool strikethrough_state;
private string convert (string raw_content) {
bold_state = true;
italics_state = true;
+ strikethrough_state = true;
if (raw_content == null || raw_content == "") return "";
@@ -283,10 +285,26 @@ public class ENotes.PageTable : DatabaseTable {
line = replace (line, "**", "", "", ref bold_state);
}
+ if (line.contains ("__")) {
+ line = replace (line, "__", "", "", ref bold_state);
+ }
+
+ if (line.contains ("*")) {
+ line = replace (line, "*", "", "", ref italics_state);
+ }
+
if (line.contains ("_")) {
line = replace (line, "_", "", "", ref italics_state);
}
+ if (line.contains ("~~~")) {
+ line = replace (line, "~~~", "", "", ref strikethrough_state);
+ }
+
+ if (line.contains ("~~")) {
+ line = replace (line, "~~", "", "", ref strikethrough_state);
+ }
+
return line;
}