just a quick note in case someone is fighting with the issue as well in the future:
print_md command if your data contains signs not supported by the markdown interpreter process of pyRevit such as
<> in system line styles names in Revit. Make sure you remove them from strings.
something like this does the trick, where I replace the < and > by + signs:
from pyrevit import revit doc_ls_names = [', '.join([i.Name.replace('<','+').replace('>','+') for i in revit.query.get_line_styles(doc)])]
if someone sees a more elegant way, please share.