Comments (1)
this is working as intended.
the cms image widget creates a markdown image, which looks like this:
![optional alt text](/path/to/image.png "optional title")
when transformed into html, we get:
<img alt="optional alt text" src="/path/to/image.png" title="optional title">
the alt
attribute of an html img
should be used for a description on the image for users who cannot see the image, either because they are using assistive tech like a screen reader, or because the network connection failed. when the alt
attribute is set to an empty string, it signals to assistive tech that this image is only decorative.
the title
attribute of any html element will be displayed as a tooltip. since hover interactions require a pointer device, we should not use the title attribute for important information, because some users (e.g. on touch devices) will not be able to see it.
if we want to display an image caption, we can use the html <figure>
and <figcaption>
elements. unfortunately, markdown does not have syntax to express these. this is why we need to use our custom <Figure>
widget for image captions. this will generate:
<Figure alt="optional alt text" src="/path/to/image.png">
Optional caption
</Figure>
for an example, see
dariah-campus/content/posts/introduction-to-dictionaries/index.mdx
Lines 79 to 84 in e72af5b
in the cms rich text field, you can insert a figure via:
and then provide the required fields:
note that the caption field supports rich-text, so you can e.g. use a link in the figure caption
from dariah-campus.
Related Issues (20)
- Moving 'Events' from Sources to the top main menu
- [new resource]: Why Space is Special: An Introduction into GIS and Geospatial History HOT 1
- [new resource]: A Non-Technical Guide to Technical GIS Methods
- [new resource]: Here There be Monsters: Maps as a Narrative Tool
- [new resource]: Google My Maps for Everyday Use: A Tutorial
- [new resource]: Data and Databases: An Introduction HOT 2
- [new resource]: Data and Databases: From Source to Data
- [new resource]: Data and Databases: Entities and Relationships
- [new resource]: Data and Databases: Scoping a Database
- [new resource]: Data and Databases: Data Ethics
- [new resource]: Data and Databases: Data Management and Storage
- 503 Service Temporarily Unavailable for "Digital Scholarly Editions: Manuscripts, Texts and TEI Encoding" resource HOT 5
- [new resource]: Creating GUIs in Python for Digital Humanities Projects HOT 1
- [new resource]: Creating Deep Convolutional Neural Networks for Image Classification HOT 1
- [new resource]: OCR with Google Vision API and Tesseract HOT 1
- [new resource]: Sentiment Analysis with 'syuzhet' using R HOT 1
- [new resource]: Clustering and Visualising Documents using Word Embeddings HOT 1
- [new resource]: Corpus Analysis with spaCy HOT 1
- [new resource]: Transcribing Handwritten Text with Python and Microsoft Azure Computer Vision HOT 1
- [new resource]: Creating Interactive Visualizations with Plotly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dariah-campus.