Coverage for src/pyTRLCConverter/marko/gfm2reqif_renderer.py: 100%
3 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-26 12:41 +0000
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-26 12:41 +0000
1"""ReqIF Renderer for Marko.
2 It is used to convert GitHub Flavored Markdown AST to ReqIF-compatible XHTML.
4 Author: Stefan Vogel (stefan.vogel@newtec.de)
5"""
7# pyTRLCConverter - A tool to convert TRLC files to specific formats.
8# Copyright (c) 2024 - 2026 NewTec GmbH
9#
10# This file is part of pyTRLCConverter program.
11#
12# The pyTRLCConverter program is free software: you can redistribute it and/or modify it under
13# the terms of the GNU General Public License as published by the Free Software Foundation,
14# either version 3 of the License, or (at your option) any later version.
15#
16# The pyTRLCConverter program is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License along with pyTRLCConverter.
21# If not, see <https://www.gnu.org/licenses/>.
23# Imports **********************************************************************
25from __future__ import annotations
26from pyTRLCConverter.marko.md2reqif_renderer import Md2ReqifRenderer
28# Variables ********************************************************************
30# Classes **********************************************************************
33class Gfm2ReqifRenderer(Md2ReqifRenderer):
34 # lobster-trace: SwRequirements.sw_req_reqif_render_gfm
35 # lobster-trace: SwRequirements.sw_req_reqif_render_plantuml
36 # lobster-trace: SwRequirements.sw_req_plantuml
37 """Renderer for ReqIF XHTML output from GitHub Flavored Markdown.
39 Inherits the inline PlantUML handling from :class:`Md2ReqifRenderer`.
40 The GFM extension is applied by the surrounding ``Markdown`` instance, so
41 this subclass only exists to provide a distinct renderer type for the GFM
42 code path.
43 """
45# Functions ********************************************************************
47# Main *************************************************************************