You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When processing a report into a Word document, processing a tag {{ case.description|markdown }} will only strip the markdown out. It does not translate the markdown into the report styling based on the original author's writing and decisions made to format their report.
Describe the solution you'd like
The Markdown function amounts to just stripping out the contents to line feeds, create a companion function to process the proper DOCX or HTML output required for the report. Create a new function to use, that would supplement the functionality in iris-web/source/app/iris_engine/reporter /reporter.py to translate it to the report formatted output called.
@staticmethod
def markdown_to_text(markdown_string):
"""
Converts a markdown string to plaintext
"""
return markdown_string.replace('\n', '</w:t></w:r><w:r/></w:p><w:p><w:r><w:t xml:space="preserve">').replace(
'#', '')
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When processing a report into a Word document, processing a tag
{{ case.description|markdown }}
will only strip the markdown out. It does not translate the markdown into the report styling based on the original author's writing and decisions made to format their report.Describe the solution you'd like
The Markdown function amounts to just stripping out the contents to line feeds, create a companion function to process the proper DOCX or HTML output required for the report. Create a new function to use, that would supplement the functionality in
iris-web/source/app/iris_engine/reporter /reporter.py
to translate it to the report formatted output called.Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: