mirror of
https://github.com/AdaCore/markdown.git
synced 2026-02-12 13:11:15 -08:00
32 lines
834 B
Ada
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;
|