mirror of
https://github.com/AdaCore/markdown.git
synced 2026-02-12 13:11:15 -08:00
to allow attributes on links and images:
```
{#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
21 lines
458 B
Ada
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:
|
|
-- `{#id .class width=30 height=20px}`
|
|
--
|
|
-- * #word is equal to `id=#word`
|
|
-- * .word is equal to `class=word`
|
|
|
|
end record;
|
|
|
|
end Markdown;
|