diff options
-rwxr-xr-x | ftt-docgen | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,7 +14,7 @@ import yaml def format_keyword(line): words = line.split(' ') keyword = words[0] - return '**{}** '.format(keyword) + line[len(keyword):] + return '*{}* '.format(keyword) + line[len(keyword):] def indent(line): prefix = ' ' * 4 @@ -28,7 +28,7 @@ def format_match(keyword, line, m): for i in range(1, n+1): parts.append(line[end:m.start(i)]) thispart = line[m.start(i) : m.end(i)] - parts.append('_{}_'.format(thispart)) + parts.append('**{}**'.format(thispart)) end = m.end(i) line = ''.join(parts) + line[m.end(n):] line = '{} {}'.format(keyword, line) |