If the comment ends with a newline, a superfluous is inserted,
resulting in extra whitespace at the end of the comment.
Signed-off-by: Marcel Korpel
---
web/lib/aur.inc.php | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
inde
Signed-off-by: Marcel Korpel
---
web/lib/aur.inc.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index d370788..7e85959 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@ -596,7 +596,9 @@ function comment_by_id($comme
Only codeblocks delimited with ``` are supported.
Signed-off-by: Marcel Korpel
---
Changes from v1:
* Convert one line at a time
* Use preg_replace_callback to convert inline code and URLs
* Now URLs within inline code are also converted, unwanted behaviour?
* Introduces a global ($md_inline_code
Signed-off-by: Marcel Korpel
---
web/html/css/aurweb.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
index 6bd7eb3..691a634 100644
--- a/web/html/css/aurweb.css
+++ b/web/html/css/aurweb.css
@@ -125,6 +125,7 @@
}
pre {
+ font-siz
Signed-off-by: Marcel Korpel
---
web/html/css/aurweb.css | 4
1 file changed, 4 insertions(+)
diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
index b33726c..6bd7eb3 100644
--- a/web/html/css/aurweb.css
+++ b/web/html/css/aurweb.css
@@ -124,6 +124,10 @@
opacity: 1;
}
Only a subset of markdown is support, i.e.:
```
code blocks
```
and `inline code`.
Marcel Korpel (3):
Add horizontal scrollbar to code blocks when necessary
Use a normal font size for code blocks
Convert markdown codeblocks and inline code to HTML
web/html/css/aurweb.css | 5
web/l
On Sat, 11 Jul 2015 at 20:22:00, Marcel Korpel wrote:
> Signed-off-by: Marcel Korpel
> ---
> web/lib/aur.inc.php | 47 ++-
> 1 file changed, 38 insertions(+), 9 deletions(-)
> [...]
> +
When a comment ends with ``` without a newline character, the delimiter
is not correctly recognized. Fix by adding a newline character.
Signed-off-by: Marcel Korpel
---
Change since v1:
* Fix commit message
web/lib/aur.inc.php | 6 ++
1 file changed, 6 insertions(+)
diff --git a/web/lib/au
When a comment and with ``` without a newline character, the delimiter
is not correctly recognized. Fix by adding a newline character.
Signed-off-by: Marcel Korpel
---
web/lib/aur.inc.php | 6 ++
1 file changed, 6 insertions(+)
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index d0
Only a subset of markdown is support, i.e.:
```
code blocks
```
and `inline code`.
Marcel Korpel (4):
Convert markdown codeblocks to HTML code blocks
Add support for markdown inline code
Add horizontal scrollbar to code blocks when necessary
Use a normal font size for code blocks
web/h
Signed-off-by: Marcel Korpel
---
web/lib/aur.inc.php | 47 ++-
1 file changed, 38 insertions(+), 9 deletions(-)
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index 4b1850f..d0c8c98 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@
Only codeblocks delimited with ``` are supported.
Signed-off-by: Marcel Korpel
---
web/lib/aur.inc.php | 49 +++--
1 file changed, 39 insertions(+), 10 deletions(-)
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index 411d5ee..4b1850f 100644
-
Signed-off-by: Marcel Korpel
---
web/html/css/aurweb.css | 4
1 file changed, 4 insertions(+)
diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
index b33726c..6bd7eb3 100644
--- a/web/html/css/aurweb.css
+++ b/web/html/css/aurweb.css
@@ -124,6 +124,10 @@
opacity: 1;
}
Signed-off-by: Marcel Korpel
---
web/html/css/aurweb.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
index 6bd7eb3..691a634 100644
--- a/web/html/css/aurweb.css
+++ b/web/html/css/aurweb.css
@@ -125,6 +125,7 @@
}
pre {
+ font-siz
This fixes a bug where the new user name input by the user was
invalid, causing the account deletion link and the form action to be
wrong.
Signed-off-by: Marcel Korpel
---
web/html/account.php | 2 +-
web/lib/acctfuncs.inc.php | 29 ++---
web/templ
When a user account is modified, the 'My Account' link should contain
the new username, otherwise clicking it directly after editing a
username will result in a 404.
Signed-off-by: Marcel Korpel
---
web/html/account.php | 12 +---
web/html/register.php | 8 +++-
web/lib/acc
Signed-off-by: Marcel Korpel
---
web/html/register.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/html/register.php b/web/html/register.php
index 014d802..cb3e8dd 100644
--- a/web/html/register.php
+++ b/web/html/register.php
@@ -25,7 +25,7 @@ if (in_request("Action")
17 matches
Mail list logo