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
So I wanted to add a caption to the Image preview, so I copy/pasted the component from the repo and added the caption, which simply uses the title field as the caption. It works well (here is the file)! However, in my Hugo site, I also allow for markdown within captions. In Hugo, this is super easy with markdownify. Is there a way to convert the caption's markdown to html for the preview? I tried this and also this but ran into issues importing ReactMarkdown and Marked via CDN and using them in combination with DecapCMS. I'm not super familiar with JS and React so I'm probably missing something simple. Thanks for reading this and for your help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I wanted to add a caption to the Image preview, so I copy/pasted the component from the repo and added the caption, which simply uses the
title
field as the caption. It works well (here is the file)! However, in my Hugo site, I also allow for markdown within captions. In Hugo, this is super easy withmarkdownify
. Is there a way to convert the caption's markdown to html for the preview? I tried this and also this but ran into issues importing ReactMarkdown and Marked via CDN and using them in combination with DecapCMS. I'm not super familiar with JS and React so I'm probably missing something simple. Thanks for reading this and for your help!Beta Was this translation helpful? Give feedback.
All reactions