mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 17:18:30 +02:00
Update Markdown exporter documentation.
This commit is contained in:
parent
95d920b0bf
commit
9ba557c0d3
2 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ import importlib
|
||||||
|
|
||||||
|
|
||||||
class PluginMeta(type):
|
class PluginMeta(type):
|
||||||
|
|
||||||
def __init__(cls, name, bases, attrs):
|
def __init__(cls, name, bases, attrs):
|
||||||
"""Called when a Plugin derived class is imported"""
|
"""Called when a Plugin derived class is imported"""
|
||||||
if not hasattr(cls, 'PLUGINS'):
|
if not hasattr(cls, 'PLUGINS'):
|
||||||
|
|
|
@ -6,7 +6,7 @@ from .text_exporter import TextExporter
|
||||||
|
|
||||||
|
|
||||||
class MarkdownExporter(TextExporter):
|
class MarkdownExporter(TextExporter):
|
||||||
"""This Exporter can convert entries and journals into json."""
|
"""This Exporter can convert entries and journals into Markdown."""
|
||||||
names = ["md", "markdown"]
|
names = ["md", "markdown"]
|
||||||
extension = "md"
|
extension = "md"
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class MarkdownExporter(TextExporter):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def export_journal(cls, journal):
|
def export_journal(cls, journal):
|
||||||
"""Returns a json representation of an entire journal."""
|
"""Returns a Markdown representation of an entire journal."""
|
||||||
out = []
|
out = []
|
||||||
year, month = -1, -1
|
year, month = -1, -1
|
||||||
for e in journal.entries:
|
for e in journal.entries:
|
||||||
|
|
Loading…
Add table
Reference in a new issue