Open bvreede opened 9 months ago
Images used in the yaml header or chapter headers of mystory.md can be referred to directly as imagename.png when placed in /static/stories/_mystory.
mystory.md
imagename.png
/static/stories/_mystory
However, when images are used in slides and in the text their path is different:/stories/_mystory/imagename.png.
/stories/_mystory/imagename.png
The getContent method (see layouts/story.js) is used on images in the headers, but not inside slide or text content. Can we add that functionality?
getContent
layouts/story.js
Images used in the yaml header or chapter headers of
mystory.md
can be referred to directly asimagename.png
when placed in/static/stories/_mystory
.However, when images are used in slides and in the text their path is different:
/stories/_mystory/imagename.png
.The
getContent
method (seelayouts/story.js
) is used on images in the headers, but not inside slide or text content. Can we add that functionality?