gramps-project / gramps-web

Frontend for Gramps Web
https://www.grampsweb.org
GNU Affero General Public License v3.0
397 stars 51 forks source link

Extending the Web Blog: images between text blocks #443

Open ClausSamuelsen opened 4 months ago

ClausSamuelsen commented 4 months ago

I really like the Blog feature in the Gramps Web, but I would like it to be able to be more "blog" like, e.g. having images between text blocks as well as sub headers etc. My immediate idea is to have multiple notes for one source and to use markdown in the notes.

DavidMStraub commented 4 months ago

Agreed that having images in between text would be very useful. One guiding principle has to be that the note format is compatible with Gramps desktop though, so allowing Markdown is not an option until it's supported by Gramps core.

ClausSamuelsen commented 4 months ago

I don't see how markdown characters (##, ** etc) in a note can conflict with Gramps desktop, as markdown is just text. Gramps desktop doesn't need to do anything with markdown in notes, same as Gramps desktop doesn't need to do anything about a source that has a tag 'Blog' attached. Besides that, I fully agree that Gramps Web features must not conflict with Gramps desktop.

DavidMStraub commented 3 months ago

I don't see how markdown characters (##, ** etc) in a note can conflict with Gramps desktop, as markdown is just text. Gramps desktop doesn't need to do anything with markdown in notes, same as Gramps desktop doesn't need to do anything about a source that has a tag 'Blog' attached.

I don't agree, mixing Markdown syntax and Gramps styled text will lead to all kind of annoying behaviour. The only thing I could imagine is using Markdown while typing, and converting it to the appropriate tags when storing the note. But Gramps styled text doesn't support headings and many other Markdown features. So let's ignore Markdown & subheadings for now and focus on the images between text in this issue.

DavidMStraub commented 3 months ago

On the images between text blocks: I thought about it and I think the best solution would be to use

Text 1

Link to image

Text 2

The "Link to image" would be just a link in Gramps Desktop, and would turn into the caption of the image on Gramps Web, with the image displayed above it.