mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-19 20:48:31 +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:
|
||||
if not e.date.year == year:
|
||||
year = e.date.year
|
||||
out.append(str(year))
|
||||
out.append("=" * len(str(year)) + "\n")
|
||||
out.append('# %s' % str(year))
|
||||
if not e.date.month == month:
|
||||
month = e.date.month
|
||||
out.append(e.date.strftime("%B"))
|
||||
out.append('-' * len(e.date.strftime("%B")) + "\n")
|
||||
out.append('## %s' % e.date.strftime("%B"))
|
||||
out.append(e.to_md())
|
||||
result = "\n".join(out)
|
||||
return result
|
||||
|
|
Loading…
Add table
Reference in a new issue