~alexwennerberg

chicago

https://alexwennerberg.com

data engineer / big nerd

~alexwennerberg/flounder-devel

Last active a month ago

~alexwennerberg/flounder-discuss

Last active a month ago

~alexwennerberg/public-inbox

Last active 2 months ago

~alexwennerberg/flounder-announce

Last active 3 months ago

~alexwennerberg/testlist

Last active 7 months ago
View more

Recent activity

Re: HTML conversion 5 days ago

From Alex to ~adnano/gmi-devel

Makes sense to me!

Alex

> On Oct 16, 2020, at 12:49 PM, Adnan Maolood <me@adnano.co> wrote:
> 
> I think that this functionality probably belongs in its own package.
> It's out of scope for gmi.
> 
> This other package could implement an extensible gemtext renderer,
> similar to existing markdown renderers (like github.com/yuin/goldmark).

Re: HTML conversion 5 days ago

From Alex to ~adnano/gmi-devel

Gemini clients sometimes do, though. I also might not have been clear, the feature I’m thinking of would be like instead of converting a gemini image link to an a href link, render the image in place with an img tag, likewise for other media. 

Alex

> On Oct 16, 2020, at 12:13 PM, Adnan Maolood <me@adnano.co> wrote:
> 
> On Fri Oct 16, 2020 at 7:12 AM EDT, alex wennerberg wrote:
>> How do you feel about, for the HTML conversion, adding in-line media
>> support? (e.g. what I do on https://alex.flounder.online/)
> 
> How would this work? Gemini doesn't support in-line media.

HTML conversion 5 days ago

From alex wennerberg to ~adnano/gmi-devel

Now that this lives here, I wanted to discuss a potential new feature.

How do you feel about, for the HTML conversion, adding in-line media
support? (e.g. what I do on https://alex.flounder.online/)

I see this potentially going in one of three ways:

1. In-line media as the default and only option
2. In-line media as the default, can be turned off
3. In-line media off as the default, can be turned on

What do you think? I could put together a patch if you're interested.

Alex

Re: [PATCH] Add preformatted alt text 6 days ago

From alex wennerberg to ~adnano/kiln-devel

On Wed Oct 14, 2020 at 9:52 PM PDT, Adnan Maolood wrote:
> I added the function (Text).HTML to the gmi package so that other
> projects can use it.

Awesome! I'm (slowly) working on a rewrite of flounder.online in Go that
will probably use it

Re: [PATCH] Add section IDs to headers in html conversion 6 days ago

From alex wennerberg to ~adnano/kiln-devel

On Wed Oct 14, 2020 at 9:19 PM PDT, Adnan Maolood wrote:
> I'm not sure if section IDs are useful here, since Gemini does not allow
> linking to sections.

I view this less as useful within the gemini content itself but more as
just an HTML document, if that makes sense. I can link to
https://alex.flounder.online/#Other%20cool%20sites in an HTML
context. Might not be worth the added complexity.

Alex

Re: [PATCH] Add preformatted alt text 6 days ago

From alex wennerberg to ~adnano/kiln-devel

On Wed Oct 14, 2020 at 8:52 PM PDT, Adnan Maolood wrote:
> On Wed Oct 14, 2020 at 4:26 PM EDT, alex wennerberg wrote:
> > You're right -- do you think "title" would be more appropriate?
>
> I'm not sure. 'title' would cause the alt text to show when hovering
> over the preformatted text. I don't think that is desirable behavior.
>
> Another thing to note is that alt text may be used to specify a
> programming language that the preformatted text is written in. It's
> unclear how a client should differentiate between alt text for ASCII art
> and alt text for code.
>
> This needs some more thought.

Re: [PATCH] Add preformatted alt text 6 days ago

From alex wennerberg to ~adnano/kiln-devel

On Wed Oct 14, 2020 at 8:22 PM PDT, Adnan Maolood wrote:
> On Wed Oct 14, 2020 at 7:35 AM EDT, alex wennerberg wrote:
> > This patch adds alt text to preformatted lines
> I don't think that the 'alt' attribute is valid for <pre> elements.

You're right -- do you think "title" would be more appropriate?

Re: [PATCH] Add section IDs to headers in html conversion 7 days ago

From alex wennerberg to ~adnano/kiln-devel

Ignore this patch, it has bugs.

On Wed Oct 14, 2020 at 11:43 AM PDT, alex wennerberg wrote:
> ---
> html.go | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/html.go b/html.go
> index 1620a84..bcb3e00 100644
> --- a/html.go
> +++ b/html.go
> @@ -50,13 +50,13 @@ func gmiToHTML(text gmi.Text) []byte {
> fmt.Fprintf(&b, "%s\n", html.EscapeString(text))
> case gmi.LineHeading1:

[PATCH] Add section IDs to headers in html conversion 7 days ago

From alex wennerberg to ~adnano/kiln-devel

---
 html.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/html.go b/html.go
index 1620a84..538775c 100644
--- a/html.go
+++ b/html.go
@@ -50,13 +50,13 @@ func gmiToHTML(text gmi.Text) []byte {
			fmt.Fprintf(&b, "%s\n", html.EscapeString(text))
		case gmi.LineHeading1:
			text := string(l.(gmi.LineHeading1))
			fmt.Fprintf(&b, "<h1>%s</h1>\n", html.EscapeString(text))
			fmt.Fprintf(&b, "<h1 id='%[1]s'>%[1]s</h1>\n", html.EscapeString(text))
[message trimmed]

[PATCH] Add section IDs to headers in html conversion 7 days ago

From alex wennerberg to ~adnano/kiln-devel

---
 html.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/html.go b/html.go
index 1620a84..bcb3e00 100644
--- a/html.go
+++ b/html.go
@@ -50,13 +50,13 @@ func gmiToHTML(text gmi.Text) []byte {
			fmt.Fprintf(&b, "%s\n", html.EscapeString(text))
		case gmi.LineHeading1:
			text := string(l.(gmi.LineHeading1))
			fmt.Fprintf(&b, "<h1>%s</h1>\n", html.EscapeString(text))
			fmt.Fprintf(&b, "<h1 id='%[1]s'>%[1]s</h1>\n", html.EscapeString(text))
[message trimmed]