You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we evidently don't have a way to exclude individual elements inside p-name or e-content or similar properties from contributing to their parsed text value. Image captions are an example: https://snarfed.org/2024-10-30_53932 contains an image with text caption inside e-content, and the caption is purely presentational, so ideally it would be omitted from the parsed content: https://pin13.net/mf2/?url=https://snarfed.org/2024-10-30_53932
@tantek proposes that we expand the mf2 parsing rules to exclude elements with role="presentation" from parsing. Works for me.
The text was updated successfully, but these errors were encountered:
snarfed
changed the title
Omit elements with role=presentation from p-*/e-* property values
Omit elements with role=presentation from parsed values
Nov 1, 2024
Right now, we evidently don't have a way to exclude individual elements inside
p-name
ore-content
or similar properties from contributing to their parsed text value. Image captions are an example: https://snarfed.org/2024-10-30_53932 contains an image with text caption insidee-content
, and the caption is purely presentational, so ideally it would be omitted from the parsedcontent
: https://pin13.net/mf2/?url=https://snarfed.org/2024-10-30_53932@tantek proposes that we expand the mf2 parsing rules to exclude elements with
role="presentation"
from parsing. Works for me.https://chat.indieweb.org/microformats/2024-11-01#t1730496257670000
The text was updated successfully, but these errors were encountered: