diff --git a/visidata/cliptext.py b/visidata/cliptext.py index d34ff1967..9bff7fad5 100644 --- a/visidata/cliptext.py +++ b/visidata/cliptext.py @@ -282,6 +282,7 @@ def clipdraw_chunks(scr, y, x, chunks, cattr:ColorAttr=ColorAttr(), w=None, clea def _markdown_to_internal(text): 'Return markdown-formatted `text` converted to internal formatting (like `[:color]text[/]`).' text = re.sub(r'`(.*?)`', r'[:code]\1[/]', text) + text = re.sub(r'(#.*?)$', r'[:h1]\1[/]', text) text = re.sub(r'\*\*(.*?)\*\*', r'[:bold]\1[/]', text) text = re.sub(r'\*(.*?)\*', r'[:italic]\1[/]', text) text = re.sub(r'\b_(.*?)_\b', r'[:underline]\1[/]', text) diff --git a/visidata/interface.py b/visidata/interface.py index 12fe5824b..12a2485bb 100644 --- a/visidata/interface.py +++ b/visidata/interface.py @@ -47,6 +47,7 @@ vd.theme_option('color_selected_row', '215 yellow', 'color of selected rows') vd.theme_option('color_clickable', 'underline', 'color of internally clickable item') vd.theme_option('color_code', 'bold white on 237', 'color of code sample') +vd.theme_option('color_h1', 'bold 209', 'color of h1 header') vd.theme_option('force_256_colors', False, 'use 256 colors even if curses reports fewer')