Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#8986 filter elements that only contain visuals like images from normal meta #9170

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

StephanMeijer
Copy link
Contributor

@StephanMeijer StephanMeijer commented Nov 5, 2023

Prevents images as Title to be interpreted as Title.

Visualisation

Untitled drawio (1)

Test Document

Screenshot 2023-11-05 at 18 02 19

@StephanMeijer
Copy link
Contributor Author

Related to #8986

@jgm
Copy link
Owner

jgm commented Nov 6, 2023

This approach (skipping images) feels a bit ad hoc to me.

I'm thinking it might be preferable to allow items with class Title, Author, or Date to be counted as metadata no matter whether they occur in the document. In the case of Title or Date, only the first would be counted as part of metadata if there are multiple. In the case of multiple Author, they could all be included in a list.

@StephanMeijer
Copy link
Contributor Author

StephanMeijer commented Nov 6, 2023

@jgm I do agree that would work in the ideal world. We have users who markup their images as being Title when they are not a title but just incorrectly styled, but are the first Title element in a document.

Is there any valid case for a situation where an image to be correctly marked as being a Title?

@jgm
Copy link
Owner

jgm commented Nov 7, 2023

I see now that my comment above wasn't really relevant; I think I was confused because you referenced #8986. That was about skipping an image not marked with Title style and parsing metadata in following paragraphs. This is really a different issue entirely.

Is there any valid case for a situation where an image to be correctly marked as being a Title?

Yes, although it's not common, I think that there are cases where an inline image might be part of a title. I wouldn't want to make this impossible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants