List of commits:
Subject Hash Author Date (UTC)
Added Markdown test 23455db9b6ce8a82245f06de6e3d7c7e6b706464 Catalin(ux) M. BOIE 2020-07-31 05:41:46
Some SELinux cosmetic 3bafeaa06231a67dcc66d37b50a6f5411b2bfbf9 Catalin(ux) M. BOIE 2020-07-31 05:41:28
Mostly cosmetic plus some tests 1a538fff7a4886395612471211eeca0c091e6864 Catalin(ux) M. BOIE 2020-07-31 05:41:02
Added a custom Markdown parser 67b9687fb858ba1018d58edd276836a0411acd1e Catalin(ux) M. BOIE 2020-07-31 05:39:49
Add an index variable to rg_template_table f310f34a6c9a2a029d479d14d86e8ea2393ee3dd Catalin(ux) M. BOIE 2020-07-31 05:39:29
Mostly cosmetic in Source page cac471307a58104fbfa7838b34a7e2ffd2e05260 Catalin(ux) M. BOIE 2020-07-31 05:38:48
Do not log bots connections ef9cdff6a0cbd559f1833e46a66cbbbe726d3d99 Catalin(ux) M. BOIE 2020-07-31 05:38:13
Comparison update b67344452d66b2ed8ef53f65470d53f8b40fe59e Catalin(ux) M. BOIE 2020-07-31 05:37:38
Minor fix for a variable type mismatch a0680065333729b91558e77a6df4403ce8f5b1a5 Catalin(ux) M. BOIE 2020-07-31 05:37:20
Minor git fixes a21b35cd0f87b844fe5ce4b8b2e14fab2506296e Catalin(ux) M. BOIE 2020-07-31 05:36:43
Docker updates d3e9cd4e358cac2d4018dcf7dc681288445a679f Catalin(ux) M. BOIE 2020-07-31 05:36:08
Admin report improvements b527baab12e2e08998672559b0f33fc6df15e74c Catalin(ux) M. BOIE 2020-07-31 05:35:25
Cosmetic 30c879d625b094a33bd9a2165c67a8a11e802f42 Catalin(ux) M. BOIE 2020-07-31 05:34:19
Builder, worker and web updates for artifacts c82a7143a24ec987e0d98bb58327ef15bc602d0d Catalin(ux) M. BOIE 2020-07-31 05:30:44
Prevent bots to create accounts 3eacd8103e9a039f3f8585a59c27fdff6fd66ca4 Catalin(ux) M. BOIE 2020-07-08 05:25:37
css: Force the footer to the bottom using flex f89dddc9fa6b2c131448996cc51349e00224eea6 Catalin(ux) M. BOIE 2020-07-04 04:15:03
docs: css tweaks d270a286b160bb5de39ade5d99a58fe26e03b2d5 Catalin(ux) M. BOIE 2020-06-30 17:21:02
Improved admin report 9fa82cc2878886c2195cdd3f334dd532b3ea6a22 Catalin(ux) M. BOIE 2020-06-28 10:19:24
First version of artifacts ad6b6c75aab8d485ea45c1d851f23d83587d6931 Catalin(ux) M. BOIE 2020-06-27 13:11:17
Allow adding bugs for public repos + small fixes e67955ce3360c8c003a718e01844b3d8effa74a6 Catalin(ux) M. BOIE 2020-06-25 16:05:54
Commit 23455db9b6ce8a82245f06de6e3d7c7e6b706464 - Added Markdown test
Author: Catalin(ux) M. BOIE
Author date (UTC): 2020-07-31 05:41
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2020-07-31 05:41
Parent(s): 3bafeaa06231a67dcc66d37b50a6f5411b2bfbf9
Signer:
Signing key:
Signing status: N
Tree: b4aeb4a2f62951cbae025947cecc2ff248bdb0f1
File Lines added Lines deleted
tests/_run_tests.sh 1 1
tests/format.php 81 0
File tests/_run_tests.sh changed (mode: 100755) (index 1947aef..bcbcb36)
2 2
3 3 . ./env.txt . ./env.txt
4 4
5 tests="http_api http_304 ldap_core ldap \
5 tests="format http_api http_304 ldap_core ldap \
6 6 admin_set_web git_big_push admin_set_git by_http wh_lambda http_keys \ admin_set_web git_big_push admin_set_git by_http wh_lambda http_keys \
7 7 http_forgot \ http_forgot \
8 8 api wh_cloud pr_anon wh_http ssh http_totp totp git_log1 \ api wh_cloud pr_anon wh_http ssh http_totp totp git_log1 \
File tests/format.php added (mode: 100644) (index 0000000..b0294b7)
1 <?php
2 error_reporting(E_ALL | E_STRICT);
3
4 $INC = dirname(__FILE__) . '/../inc';
5 require_once($INC . '/init.inc.php');
6 require_once($INC . '/log.inc.php');
7 require_once($INC . '/format.inc.php');
8
9 rg_log_set_file('format.log');
10
11 $a = '';
12 $e = '';
13
14 $a .= 'Title h1' . "\n";
15 $a .= '========' . "\n";
16 $e .= '<h1>Title h1</h1>' . "\n";
17
18 $a .= 'Title h2' . "\n";
19 $a .= '--------' . "\n";
20 $e .= '<h2>Title h2</h2>' . "\n";
21
22 // force a paragraph as well
23 $a .= "\n" . 'This should be **bold** and this *italic*.' . "\n\n";
24 $e .= "\n" . '<p>This should be <strong>bold</strong> and this <em>italic</em>.</p>' . "\n\n";
25
26 // paragraph should end at the end of the text
27 $a .= 'This should be __bold__ and this _italic_' . "\n";
28 $e .= '<p>This should be <strong>bold</strong> and this <em>italic</em>' . "\n";
29
30 $a .= '###### This should be a H6' . "\n";
31 $e .= '<h6>This should be a H6</h6>' . "\n";
32
33 $a .= '# This should be a H1' . "\n";
34 $e .= '<h1>This should be a H1</h1>' . "\n";
35
36 $a .= '###### This should be a H6' . "\n";
37 $e .= '<h6>This should be a H6</h6>' . "\n";
38
39 $a .= '---' . "\n";
40 $e .= '<hr />' . "\n";
41
42 $a .= '> blockquote' . "\n";
43 $e .= '<blockquote><p>blockquote</p></blockquote>' . "\n";
44
45 $a .= '~~strike~~' . "\n";
46 $e .= '<strike>strike</strike>' . "\n";
47
48 $a .= '`some code`' . "\n";
49 $e .= '<code>some code</code>' . "\n";
50
51 $a .= 'This should be a [link](http://rocketgit.com)' . "\n";
52 $e .= 'This should be a <a href="http://rocketgit.com" target="_blank">link</a>' . "\n";
53
54 $a .= 'aaa | bbb | ccc' . "\n";
55 $a .= '--- | --- | ---' . "\n";
56 $a .= 'xxx | yyy | zzz' . "\n";
57 $e .= '';
58 $e .= '<table>' . "\n";
59 $e .= '<tr><th>aaa</th><th>bbb</th><th>ccc</th></tr>' . "\n";
60 $e .= '<tr><td>xxx</td><td>yyy</td><td>zzz</td></tr>' . "\n";
61 $e .= '</table>' . "\n";
62
63 $a .= '![Image](Icon-pictures.png "icon")' . "\n";
64 $e .= '<img alt="Image" title="icon" src="Icon-pictures.png" />' . "\n";
65
66 $a .= '2 spaces in the end ' . "\n";
67 $e .= '2 spaces in the end<br />' . "\n";
68
69 $e .= '</p>';
70
71 $r = rg_format_markdown($a);
72 if (strcmp($r, $e) != 0) {
73 rg_log('Markdown error! Check format.md.r and format.md.e file!');
74 file_put_contents('format.md.r', $r);
75 file_put_contents('format.md.e', $e);
76 exit(1);
77 }
78
79
80 rg_log('OK');
81
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main