psb/src
Pagwin 7a0032c7d3
add ReferenceImage to the IR and use it for ![alt][ref]
The reference form of the image syntax had nowhere to go: Image only has a
url, so the parser was putting the label there and `![a][b]` came out
identical to `![a](b)`, with nothing downstream aware the url still needed
resolving against a RefDef.

Adds a ReferenceImage constructor mirroring ReferenceLink and has the djot
parser emit it. As with reference links, an empty label falls back to the
alt text.

Note HTML.hs still renders neither reference form.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 15:21:46 -04:00
..
Logger refactored to have most stuff in a library 2025-11-30 21:19:28 -05:00
Psb fixed what gets passed into our templates file bundling wise 2026-02-23 21:57:11 -05:00
Utilities Brought in code by Gemini for handling lists and Task lists 2026-04-10 16:17:37 -04:00
Config.hs swapped to a single js and single css entrypoint and my brain hurts 2026-02-05 00:27:46 -05:00
Djot.hs add ReferenceImage to the IR and use it for ![alt][ref] 2026-09-04 15:21:46 -04:00
HTML.hs bunch of work on djot 2026-04-10 15:22:06 -04:00
IR.hs add ReferenceImage to the IR and use it for ![alt][ref] 2026-09-04 15:21:46 -04:00
Logger.hs did a lot of the work for handling slashes 2025-12-30 23:48:20 -05:00
Markdown.hs bunch of work on djot 2026-04-10 15:22:06 -04:00
Restruct.hs moved everything into src for ease of testing 2025-12-05 19:42:15 -05:00
Templates.hs added a function for future convenience with mustache 2025-12-30 00:45:42 -05:00
Types.hs MVP Bundling is now implemented 2026-02-23 17:14:31 -05:00
Utilities.hs moved everything into src for ease of testing 2025-12-05 19:42:15 -05:00