reply

cool!!! auto linking and images in comments are underrated.

it’s definitely not perfect, but feel free to plunder my code for auto-linking HTML, based on kylewm’s: https://github.com/snarfed/webutil/blob/9770108bc133700e2be690ed9475f96e6ba13331/util.py#L391-L489

also, did you only switch articles to name? or notes too? the wordpress plugins originally only showed name for both, which annoyed me, so i made both show full content if it was short enough: https://github.com/pfefferle/wordpress-semantic-linkbacks/pull/64

Standard

One thought on “

  1. @snarfed.org Well you managed to provide an interesting example in this reply! Your post has e-content so it’s parsed as HTML, but then the links in the post aren’t hyperlinks! I was worried my autolinker was broken but it’s not running because it thinks the post is HTML.

    I run the heuristics at https://indieweb.org/comments-presentation#How_to_display to determine whether the “name” of the post is distinct from the “content”, so that’s how I tell whether something is an article vs a note. If your mf2 has the same values for name and content, it drops the name and shows just the content.

Leave a Reply

Your email address will not be published. Required fields are marked *