mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-02 11:48:57 +08:00
The HelpInvalidRST/HelpValidRST linters read the <help> text straight off the XML tree and always validated it as reStructuredText. Markdown help (and YAML tool sources, which default to Markdown) was therefore flagged with spurious "Invalid reStructuredText" warnings. Route both linters through a shared _help_rst() helper that uses tool_source.parse_help() to obtain the help content and its declared format, and skip RST validation unless the format is restructuredtext. Fixes #23071