Expand description
Image references in Markdown. Hammer shows a project image as , or
with the destination in angle brackets, <hammer://image/<id>>. The alt text means nothing: Hammer
shows the image’s own name.
Constants§
- PREFIX
- What every image reference starts with.
Functions§
- find_
ids - Every image id
markdownrefers to, each once, in the order they first appear: in images, angle-bracket destinations, reference definitions ([map]: hammer://image/3), and code alike, as Hammer counts them. A reference ishammer://image/and its digits where no letter, digit,_,+,., or-comes just before it and no letter, digit, or_just after, sohammer://image/12xnames none. An id too large for ani32names none either. - get
- The image a reference names, as
parse_referencereads it, with its bytes:image.get, which the manifest must ask for. An InvalidInput error for a reference that names no image, andimage.get’s for one not inproject. - parse_
reference - The image id a reference names:
hammer://image/3, or<hammer://image/3>, is 3. None for anything else, such as another scheme, an id that is empty, not all ASCII digits, or too large for ani32. - reference
- The reference to the image
image_id,hammer://image/<id>, for Markdown such as.