Skip to content

Commit

Permalink
Add newlines before closing quote and code blocks
Browse files Browse the repository at this point in the history
Thomas Upton committed Jun 4, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6cc3da1 commit e31c127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jira.lua
Original file line number Diff line number Diff line change
@@ -125,7 +125,7 @@ function Header(lev, s, attr)
end

function BlockQuote(s)
return ("{quote}\n%s{quote}"):format(s)
return ("{quote}\n%s\n{quote}"):format(s)
end

function HorizontalRule()
@@ -138,7 +138,7 @@ end

function CodeBlock(s, attr)
local lang = (attr.class or ''):match('^%a+')
return ("{code%s}\n%s{code}"):format(
return ("{code%s}\n%s\n{code}"):format(
lang and (":" .. lang) or '',
s
)

0 comments on commit e31c127

Please sign in to comment.