# (c) 2025 by Andreas Kraft & Miguel Angel Reina Ortega
# License: BSD 3-Clause License. See the LICENSE file for further details.
#
""" This script replaces the grid tables in the markdown files with the equivalent
html tables. Other markdown elements are not affected and are passed through.
The script expects the markdown file to be converted from stdin and writes the
result to stdout.
"""
importargparse,sys
fromrichimportprint
frommarkdownToolsimportanalyseMarkdown,setLoggers
defmain()->None:
# Parse the command line arguments
parser=argparse.ArgumentParser(description='Convert grid tables to html tables. This script reads the markdown file from stdin and writes the result to stdout.')
parser.add_argument('-v','--verbose',action='store_true',help='Print debug information to stderr.')