Skip to content

Commit

Permalink
feat: update short syntax for list
Browse files Browse the repository at this point in the history
  • Loading branch information
u8slvn committed Oct 30, 2021
1 parent 0dde7ca commit 7974b8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions markdownio/markdownio.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def h5(self, text: str):
def h6(self, text: str):
self.add(Header6(text=text))

def ordered_list(self, items: List):
def ol(self, items: List):
self.add(OrderedList(items=items))

def unordered_list(self, items: List):
def ul(self, items: List):
self.add(UnorderedList(items=items))

def quote(self, text: str):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_markdownio.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ def test_markdownio_workflow_with_short_syntax():
markdown.h2(text="Quote")
markdown.quote(text='A nice quote!')
markdown.h3(text="Ordered list")
markdown.ordered_list(items=[
markdown.ol(items=[
'Item 1',
'Item 2',
'Item 3',
])
markdown.h4(text="Unordered list")
markdown.unordered_list(items=[
markdown.ul(items=[
'Item 1',
'Item 2',
'Item 3',
Expand Down

0 comments on commit 7974b8b

Please sign in to comment.