mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
fixed inconsistency in usage of markdown headers (don't use ALT-Headers...)
This commit is contained in:
parent
74309cf722
commit
66eeb140c2
1 changed files with 2 additions and 4 deletions
|
@ -50,12 +50,10 @@ def to_md(journal):
|
||||||
for e in journal.entries:
|
for e in journal.entries:
|
||||||
if not e.date.year == year:
|
if not e.date.year == year:
|
||||||
year = e.date.year
|
year = e.date.year
|
||||||
out.append(str(year))
|
out.append('# %s' % str(year))
|
||||||
out.append("=" * len(str(year)) + "\n")
|
|
||||||
if not e.date.month == month:
|
if not e.date.month == month:
|
||||||
month = e.date.month
|
month = e.date.month
|
||||||
out.append(e.date.strftime("%B"))
|
out.append('## %s' % e.date.strftime("%B"))
|
||||||
out.append('-' * len(e.date.strftime("%B")) + "\n")
|
|
||||||
out.append(e.to_md())
|
out.append(e.to_md())
|
||||||
result = "\n".join(out)
|
result = "\n".join(out)
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Add table
Reference in a new issue