spyder-ide / spyder-website

The new Spyder website, built with Svelte
http://www.spyder-ide.org/
MIT License
2 stars 4 forks source link

Support separate alt text and captions in Markdown content #14

Closed conradolandia closed 1 month ago

conradolandia commented 1 month ago

This PR replaces a plugin to add support for proper Alt text from markdown sources using mdsvex. The new plugin is rehype-title-figure.

With this new implementation, ![This is alt text](image.jpg "This is the caption") will render like <figure><img src="image.jpg" alt="This is alt text" title="This is the caption"/><figcaption>This is the caption</figcaption></figure>.

An image without a caption will not produce a figure nor figcaption, but will produce an img with an alt attribute: ![This is alt text](image.jpg) will render like <img src="image.jpg" alt="This is alt text" />.

netlify[bot] commented 1 month ago

Deploy Preview for spyder-svelte-website-preview ready!

Name Link
Latest commit d4e96d9bb3044cbc9e35473f28915df025696330
Latest deploy log https://app.netlify.com/sites/spyder-svelte-website-preview/deploys/66ea1521b91abe00080490ab
Deploy Preview https://deploy-preview-14--spyder-svelte-website-preview.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.