Add Markdown support to package comments

Support Markdown syntax in package comments. Among other things, this
makes it easier to paste command line output and patches.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-04-23 13:54:21 +02:00
parent 016b40f99d
commit 9aa4203c7e
2 changed files with 7 additions and 4 deletions

View file

@ -11,7 +11,8 @@ test_expect_success 'Test comment rendering.' '
EOD
"$RENDERCOMMENT" 1 &&
cat <<-EOD >expected &&
Hello world!<br>This is a comment.
<p>Hello world!<br>
This is a comment.</p>
EOD
cat <<-EOD | sqlite3 aur.db >actual &&
SELECT RenderedComment FROM PackageComments WHERE ID = 1;