aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-06 16:31:36 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-06 16:31:36 -0700
commitd15de8444d2b2effe2a157b6c9c3f5818cdab78e (patch)
tree40c25c4425e84e404d39d5608ac2f3c66a7b3d9e
parent487a99ede50bdbbd5308b1b446b9fc354d0a8c27 (diff)
downloadpatchfoo-d15de8444d2b2effe2a157b6c9c3f5818cdab78e.tar.gz
patchfoo-d15de8444d2b2effe2a157b6c9c3f5818cdab78e.zip
Disable symbol wrapping
-rw-r--r--lib/render.js4
-rw-r--r--static/styles.css2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js
index ef77f35..9c37d9c 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -80,6 +80,7 @@ Render.prototype.emoji = function (emoji) {
}) : name
}
+/* disabled until it can be done safely without breaking html
function fixSymbols(str) {
// Dillo doesn't do fallback fonts, so specifically render fancy characters
// with Symbola
@@ -87,6 +88,7 @@ function fixSymbols(str) {
return '<span class="symbol">' + $0 + '</span>'
})
}
+*/
Render.prototype.markdown = function (text, mentions) {
if (!text) return ''
@@ -100,7 +102,7 @@ Render.prototype.markdown = function (text, mentions) {
})
var out = marked(String(text), this.markedOpts)
delete this._mentions
- return fixSymbols(out)
+ return out //fixSymbols(out)
}
Render.prototype.imageUrl = function (ref) {
diff --git a/static/styles.css b/static/styles.css
index fd23b82..481bced 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -8,9 +8,11 @@ section {
padding: 1ex;
}
+/*
.symbol {
font-family: Symbola;
}
+*/
.ssb-post img {
max-width: 100%;