Files
markdown/source/parser/implementation/markdown-implementation-thematic_breaks.ads
Maxim Reznik 96ec9c3e4e Add Initialize procedure
to allow task-safe initialization.
2025-11-18 23:41:03 +02:00

32 lines
834 B
Ada

--
-- Copyright (C) 2021-2023, AdaCore
--
-- SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
--
-- Internal representation of a markdown thematic break
package Markdown.Implementation.Thematic_Breaks is
pragma Preelaborate;
type Thematic_Break is new Abstract_Block with private;
-- Thematic_Break block contains annotated inline content
procedure Detector
(Input : Input_Position;
Tag : in out Ada.Tags.Tag;
CIP : out Can_Interrupt_Paragraph);
-- The detector procedure to find start of a Thematic_Break
procedure Initialize;
-- Prepare regexp patterns
private
type Thematic_Break is new Abstract_Block with null record;
overriding function Create
(Input : not null access Input_Position) return Thematic_Break;
end Markdown.Implementation.Thematic_Breaks;