JSTOR-Labs / plant-humanities

The Plant Humanities Lab is an innovative digital space that supports the interdisciplinary study of plants from the various perspectives of the arts, sciences, and humanities, to explore their extraordinary significance to human culture.
https://jstor-labs.github.io/plant-humanities/
10 stars 26 forks source link

inline image display at end of paragraph #84

Open kristanmhanson opened 3 years ago

kristanmhanson commented 3 years ago

For my sunflower essay, I would like to have an inline image display at the end of a paragraph in my sunflower essay. It's a tiny emoji.

https://dev.visual-essays.app/develop/kristanmhanson/plant-humanities/sunflower

I updated the code following https://visual-essays.app/inline-images. That corrects previous problem but the image floats beneath the text.

The same is true for work around

julia-ha commented 3 years ago

@kristanmhanson Hi Kristan, to have the text wrap around an image, the image code must go before the text it should appear next to. If you want to have the image appear next to or at the end of the last sentence, you could try something like this:

...beauty above its use value, unlike most economical illustrations then found in herbals. ![](https://raw.githubusercontent.com/kristanmhanson/plant-humanities/develop/images/Sunflower%20emoji_openmoji.org_tiny.jpg){: .right} For that reason, Besler's _Flos Solis maior_ ("large flower of the sun") became an influential model for visualizing _H. annuus_ that anticipated modern visual stereotypes for the plant, perhaps best epitomized by this tiny [sunflower emoji](https://openmoji.org/library/#search=sunflower).

Let me know if this works for you.

kristanmhanson commented 3 years ago

Hi Julia, Thank you for working on this issue! I've tried to move the code as you suggest (above). Unfortunately, it does not fix the problem.

The text after "{: .right}" is not recognized as part of the same active paragraph.

You can see the issue in two essays in the main plant-humanities Github repository, develop branch: pelargonium (paragraph 11) and sunflower (paragraph 7).

Please let me know if you have other ideas!

Many thanks, Kristan