diff --git a/scripts/generate.py b/scripts/generate.py index a42a607..b87c5dd 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -299,14 +299,16 @@ def render_results_block(element, acc): def render_text(element, acc): - acc.append('') + acc.append('
') render_text_tokens(element.content, acc) - acc.append('') + acc.append('
') def render_text_tokens(tokens, acc): + acc.append('

') for chunk in tokens: if isinstance(chunk, str): - acc.append('{} '.format(chunk)) + lines = chunk.replace('\n\n', '

') + acc.append('{}'.format(lines)) elif isinstance(chunk, Link): link_target = chunk.value if link_target.startswith('id:'): @@ -321,6 +323,7 @@ def render_text_tokens(tokens, acc): )) # else: # raise NotImplementedError('TextToken: {}'.format(chunk)) + acc.append('

') def render_tag(element, acc): diff --git a/static/style.css b/static/style.css index 1829181..e864102 100644 --- a/static/style.css +++ b/static/style.css @@ -29,6 +29,12 @@ html, body { content: "🮦"; } +/* Inhibit

tags inside items */ +/* TODO: Remove need for this on generator */ +.item p { + display: inline; +} + /* Headers */ h1 { font-size: 150%;