Recent activity

[PATCH core.sr.ht v2] Add strikethrough support to SrhtRenderer 22 days ago

From jack gleeson to ~sircmpwn/sr.ht-dev

---
This patch adds del to the html sanitize
whitelist, allowing strikethroughs.
 srht/markdown.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 5005542..4b8431b 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

[message trimmed]

[PATCH v2] Add strikethrough support to SrhtRenderer 22 days ago

From jack gleeson to ~sircmpwn/sr.ht-dev

---
This patch adds del to the html sanitize
whitelist, allowing strikethroughs.
 srht/markdown.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 5005542..4b8431b 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

[message trimmed]

Re: [PATCH core.sr.ht] Add strikethrough support to SrhtRenderer 23 days ago

From Jack Gleeson to ~sircmpwn/sr.ht-dev


>> I'm not seeing where in this patch it is recognizing the ~~ notation.
That's something built in to the mistletoe library.
It also includes support for tables - also not in CommonMark.
I'm just providing a function to render the existing strikethrough 
tokens
as strikethroughs.

Re: [PATCH core.sr.ht] Add strikethrough support to SrhtRenderer 23 days ago

From Jack Gleeson to ~sircmpwn/sr.ht-dev

This patch works with the ~~ notation and recognises it as 
strikethrough.

Use of <del> in place of <s> was just personal preference, I'm agnostic
on which is more suitable.

I didn't realise CommonMark still hadn't agreed on including
strikethrough in the specification. I see the value in including them,
but recognise that it is not in the standard. In which case, it's fair
to call this out of scope and ddevault can ignore this patch.

[PATCH core.sr.ht] Add strikethrough support to SrhtRenderer 23 days ago

From jack gleeson to ~sircmpwn/sr.ht-dev

---
This adds back strikethrough support to the markdown renderer.
Strikethroughs are rendered as del HTML elements.
 srht/markdown.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 5005542..68eae1d 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

[message trimmed]

Re: gmnisrv - SSL Cert Rejected 1 year, 2 months ago

From to ~sircmpwn/gmni-discuss

> Does your client support TOFU properly? We use a self-signed cert.

Almost certainly not, first time trying to implement something like this.
Going to dig back in and try figure it out. Still confuses me why it
works the first time around though.

Cheers,
Jack

gmnisrv - SSL Cert Rejected 1 year, 2 months ago

From to ~sircmpwn/gmni-discuss

Running into an SSL authentication error when trying to access drewdevault.com
through my client spawsh. Everything works the first time I request a page, but
any subsequent requests will fail and the connection will be terminated.

https://sr.ht/~jpgleeson/spawsh/

This may be caused by bad behaviour in my application, but everything was
working until today. Last time I checked before that was about a week ago.
Additionally, other sites do not seem to have this issue.

Is there a list of other gemini sites running gmnisrv I can use to see if
it's localised to the server and my code is at fault?

Cheers,

[PATCH git.sr.ht] Fix breadcrumb text clipping issue 1 year, 4 months ago

From jack gleeson to ~sircmpwn/sr.ht-dev

Fixing issue on low resolutions / narrow screens where the breadcrumb
menu items overlap under the reference items to the right. This is
closer to the hg.sr.ht layout which wraps on narrow screens.
---
 scss/main.scss | 1 -
 1 file changed, 1 deletion(-)

diff --git a/scss/main.scss b/scss/main.scss
index 4aacbda..0f251d6 100644
--- a/scss/main.scss
+++ b/scss/main.scss
@@ -414,7 +414,6 @@ img {
  display: flex;

[message trimmed]

Text overlap bug 1 year, 5 months ago

From to ~sircmpwn/sr.ht-discuss

We can fix this by removing the

white-space: nowrap;

value that applies to breadcrumb in the css. Happy to submit a patch for this if that's acceptable.

Image here showing this change.

https://jpgleeson.com/content/srht-nowrap.png


Jack

Re: [PATCH core.sr.ht v2] Dark theme alert info box colour change. 1 year, 7 months ago

From to ~sircmpwn/sr.ht-dev

Screenshots below. I find the contrast between the two colours
a bit too close for easy reading. Maybe a better solution is
to change the link colour in the alert-info box, but this seemed
a smaller change in terms of consistency with everything else.

Original: https://jpgleeson.com/content/srht-darktheme-originalcrop.png
Patched: https://jpgleeson.com/content/srht-darktheme-modifiedcrop.png

December 19, 2020 9:30 AM, "Drew DeVault" <sir@cmpwn.com> wrote:

> Do you have a before/after screenshot to share?