[GRASS-git] [OSGeo/grass] fbd063: lib/parser: Separate Markdown code from reStructur...

Vaclav Petras noreply at github.com
Tue Mar 4 07:53:45 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: fbd06319e1847d2ccdb15522af7bebc7662de0f5
      https://github.com/OSGeo/grass/commit/fbd06319e1847d2ccdb15522af7bebc7662de0f5
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    A lib/gis/parser_md.c
    A lib/gis/parser_rest.c
    R lib/gis/parser_rest_md.c

  Log Message:
  -----------
  lib/parser: Separate Markdown code from reStructuredText (#5240)

This restores the original 'rest' file for reStructuredText output so that it is in a separate function (and file) from Markdown. The reStructuredText output is removed from the Markdown code. While this currently introduces some duplication, it allows for further modifications of Markdown without a need to modify the reStructuredText at the same time. Even now, there are significant differences between the outputs due to the differences in syntax (headings, images, command line option lists). Anyway, the reStructuredText is scheduled for removal since the initial addition of the Markdown build, so a separate file will be easy to remove later (and this is basically a first step in the removal).

It simplifies the Markdown code a little bit by avoiding a simple call to static function which is not needed anymore since no decision is made to switch between Markdown and reStructuredText at that level anymore.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list