Files
markdown/source/parser/markdown.ads
Maxim Reznik 451ddcfb5b Add Link_Attributes extension
to allow attributes on links and images:

```
![image](foo.jpg){#id .class width=30 height=20px}
```

Move HTML attribute list type to a dedicated package.
Move common HTML attribute regexp patterns to a dedicated package.
Introduce Extension_Set type and `Set_Extensions` procedure.

See
https://garrettgman.github.io/rmarkdown/authoring_pandoc_markdown.html#links
2025-06-04 13:51:29 +03:00

21 lines
458 B
Ada

--
-- Copyright (C) 2021-2023, AdaCore
--
-- SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
--
package Markdown is
pragma Pure;
type Extension_Set is record
Link_Attributes : Boolean := False;
-- Attributes can be set on links and images:
-- `![image](foo.jpg){#id .class width=30 height=20px}`
--
-- * #word is equal to `id=#word`
-- * .word is equal to `class=word`
end record;
end Markdown;