convert_md2html: use gitlab api
Compare changes
+ 7
− 2
@@ -88,7 +88,9 @@ build-{{ machine }}:
@@ -122,8 +124,11 @@ build-{{ machine }}:
This is a fix for issue [746-001267] CI: Markdown to html conversion with gitlab flavor
The essence of work is in following adjustments for convert_md2html.py:
Results:
Notes:
[[TOC]]
in "hints.md" got converted by the new script, hyperlinks in it do not work. Plus "hints.md" in general was parsed differently that with the old script.markdown(text: str, gfm: bool = False, project: str | None = None, **kwargs: Any)
project (str | None) – Full path of a project used a context when gfm is True
As a side effect, additional data fields are added to the links in output changelog.html.
With this change a following additional information is added to the links, pointing to MRs:
<data-reference-type="merge_request" data-original="!187" data-link="true" data-link-reference="true" data-project="2074" data-merge-request="4977" data-project-path="seco-ne/yocto/layers/meta-seconorth-machine" data-iid="187" data-container="body" data-placement="top" title="overrides: Run automated conversion of OVERRIDES" class="gfm gfm-merge_request">