├── .github
├── CODEOWNERS
├── dependabot.yml
└── workflows
│ └── build.yml
├── .gitignore
├── LICENSE
├── README.md
├── pom.xml
└── src
├── main
└── java
│ └── io
│ └── github
│ └── gitbucket
│ └── markedj
│ ├── Grammer.java
│ ├── InlineLexer.java
│ ├── Lexer.java
│ ├── Marked.java
│ ├── Options.java
│ ├── Parser.java
│ ├── Renderer.java
│ ├── Utils.java
│ ├── extension
│ ├── Extension.java
│ ├── TokenConsumer.java
│ └── gfm
│ │ └── alert
│ │ ├── DefaultGFMAlertRenderer.java
│ │ ├── GFMAlertEndToken.java
│ │ ├── GFMAlertExtension.java
│ │ ├── GFMAlertOptions.java
│ │ ├── GFMAlertRenderer.java
│ │ ├── GFMAlertStartToken.java
│ │ └── GFMAlerts.java
│ ├── rule
│ ├── FindAllRule.java
│ ├── FindFirstRule.java
│ ├── NoopRule.java
│ └── Rule.java
│ └── token
│ ├── BlockquoteEndToken.java
│ ├── BlockquoteStartToken.java
│ ├── CodeToken.java
│ ├── HeadingToken.java
│ ├── HrToken.java
│ ├── HtmlToken.java
│ ├── ListEndToken.java
│ ├── ListItemEndToken.java
│ ├── ListItemStartToken.java
│ ├── ListStartToken.java
│ ├── LooseItemStartToken.java
│ ├── ParagraphToken.java
│ ├── SpaceToken.java
│ ├── TableToken.java
│ ├── TextToken.java
│ └── Token.java
└── test
├── java
└── io
│ └── github
│ └── gitbucket
│ └── markedj
│ ├── BlockquotesTest.java
│ ├── GFMAlertsTest.java
│ ├── MarkedTest.java
│ └── Resources.java
└── resources
├── empty_item_of_list.html
├── empty_item_of_list.md
├── gfm
└── alerts
│ ├── caution.html
│ ├── caution.md
│ ├── important.html
│ ├── important.md
│ ├── note.html
│ ├── note.md
│ ├── testWithMultipleAlerts.html
│ ├── testWithMultipleAlerts.md
│ ├── testWithParagraphBeforeAndAfter.html
│ ├── testWithParagraphBeforeAndAfter.md
│ ├── tip.html
│ ├── tip.md
│ ├── warning.html
│ ├── warning.md
│ ├── warning_custom_renderer.html
│ └── warning_custom_title.html
├── gitbucket.html
├── gitbucket.md
├── ldap_settings.html
├── ldap_settings.md
├── multiple_blockquotes_1.html
├── multiple_blockquotes_1.md
├── multiple_blockquotes_2.html
├── multiple_blockquotes_2.md
├── nested_content_of_list.html
├── nested_content_of_list.md
├── nptable.html
├── nptable.md
├── quote.html
├── quote.md
├── stackoverflow.txt
├── stackoverflow2.txt
├── table.html
├── table.md
├── wikilink.html
└── wikilink.md
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | * @takezoe @xuwei-k
2 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: "github-actions"
4 | directory: "/"
5 | schedule:
6 | interval: "weekly"
7 | - package-ecosystem: "maven"
8 | directory: "/"
9 | schedule:
10 | interval: "weekly"
11 |
--------------------------------------------------------------------------------
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | # This workflow will build a Java project with Maven
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3 |
4 | name: build
5 |
6 | on:
7 | push:
8 | branches: [ master ]
9 | pull_request:
10 | branches: [ master ]
11 |
12 | jobs:
13 | build:
14 | runs-on: ubuntu-latest
15 | strategy:
16 | matrix:
17 | java: [8, 21]
18 | steps:
19 | - uses: actions/checkout@v4
20 | - name: Set up JDK
21 | uses: actions/setup-java@v4
22 | with:
23 | java-version: ${{ matrix.java }}
24 | distribution: temurin
25 | - name: Build
26 | run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
27 | - name: Test
28 | run: mvn test -B
29 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | target/
2 | *.class
3 |
4 | # Mobile Tools for Java (J2ME)
5 | .mtj.tmp/
6 |
7 | # Package Files #
8 | *.jar
9 | *.war
10 | *.ear
11 |
12 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
13 | hs_err_pid*
14 | .idea/
15 | *.iml
16 |
17 | # Visual Studio Code
18 | .vscode
19 |
20 | # Eclipse
21 | .settings
22 | .classpath
23 | .project
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
203 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # markedj [](https://github.com/gitbucket/markedj/actions?query=branch%3Amaster+workflow%3Abuild) [](https://maven-badges.herokuapp.com/maven-central/io.github.gitbucket/markedj) [](https://github.com/gitbucket/markedj/blob/master/LICENSE)
2 |
3 | JVM port of graceful markdown processor [marked.js](https://github.com/chjj/marked).
4 |
5 | ## Usage
6 |
7 | First, add following dependency into your `pom.xml`:
8 |
9 | ```xml
10 |
Note
103 |Useful information that users should know, even when skimming content.
104 |");
17 | if(escaped){
18 | sb.append(code);
19 | } else {
20 | sb.append(escape(code, true));
21 | }
22 | sb.append("\n
\n");
23 | return sb.toString();
24 | } else {
25 | StringBuilder sb = new StringBuilder();
26 | sb.append("");
27 | if(escaped){
28 | sb.append(code);
29 | } else {
30 | sb.append(escape(code, true));
31 | }
32 | sb.append("\n
\n");
33 | return sb.toString();
34 | }
35 | }
36 |
37 | public String blockquote(String quote){
38 | return "\n" + quote + "\n"; 39 | } 40 | 41 | public String html(String html){ 42 | return html; 43 | } 44 | 45 | public String heading(String text, int level, String raw){ 46 | return "
" + text + "
\n"; 70 | } 71 | 72 | public String table(String header, String body){ 73 | return "" + text + "
";
106 | }
107 |
108 | public String br(){
109 | return "")) { 29 | message = String.format("
%s
", message); 30 | } 31 | 32 | return String.format("%s
\n%s\n 123
123
", result); 71 | } 72 | 73 | @Test 74 | public void testEm() throws Exception { 75 | { 76 | String result = Marked.marked("_aa__a__aa_", new Options()); 77 | assertEquals("aaaaa
", result); 78 | } 79 | { 80 | String result = Marked.marked("*aa*o*aa*", new Options()); 81 | assertEquals("aaoaa
", result); 82 | } 83 | { 84 | String result = Marked.marked("_aa__aa_", new Options()); 85 | assertEquals("aa__aa
", result); 86 | } 87 | } 88 | 89 | @Test 90 | public void testStackoverFlow() throws Exception { 91 | Marked.marked(loadResourceAsString("stackoverflow.txt"), new Options()); 92 | } 93 | 94 | @Test 95 | public void testStackoverFlow2() throws Exception { 96 | Marked.marked(loadResourceAsString("stackoverflow2.txt"), new Options()); 97 | } 98 | 99 | @Test 100 | public void testNptable() throws Exception { 101 | String result = Marked.marked(loadResourceAsString("nptable.md"), new Options()); 102 | String expect = loadResourceAsString("nptable.html"); 103 | assertEquals(expect, result); 104 | } 105 | 106 | @Test 107 | public void testBreaks() throws Exception { 108 | { 109 | String md = "first line\nsecond line"; 110 | Options options = new Options(); 111 | //options.setBreaks(false); // default is false 112 | //options.setGfm(true); // default is true 113 | String result = Marked.marked(md, options); 114 | 115 | assertEquals("first line second line
", result); 116 | } 117 | { 118 | String md = "first line\nsecond line"; 119 | Options options = new Options(); 120 | options.setBreaks(true); 121 | //options.setGfm(true); // default is true 122 | String result = Marked.marked(md, options); 123 | 124 | assertEquals("first line
\n second line
public class HelloWorld {\n" +
143 | "}\n" +
144 | "
", result);
145 | }
146 |
147 | @Test
148 | public void testFencedCodeBlock() throws Exception {
149 | String md = "``` {#id .class1 attribute1=value1}\ntest\n```";
150 | String result = Marked.marked(md, new Options());
151 | String expect = "test\n
";
152 | assertEquals(expect, result);
153 | }
154 |
155 | @Test
156 | public void testEmptyItemOfList() throws Exception {
157 | String result = Marked.marked(loadResourceAsString("empty_item_of_list.md"), new Options());
158 | assertEquals(loadResourceAsString("empty_item_of_list.html"), result);
159 | }
160 |
161 | @Test
162 | public void testParagraphSeparation() throws Exception {
163 | String result = Marked.marked(
164 | "Message A\n" +
165 | "- List A\n" +
166 | "- List B", new Options());
167 |
168 | assertEquals(
169 | "Message A
\n" + 170 | "ID | \n" + 196 | "name | \n" + 197 | "note | \n" + 198 | "
---|---|---|
1 | \n" + 203 | "foo | \n" + 204 | "This is foo | \n" + 205 | "
2 | \n" + 208 | "bar | \n" + 209 | "\n" + 210 | " |
<b>bold</b><script>alert('test!');</script>
", result); 222 | } 223 | { 224 | Options options = new Options(); 225 | options.setSanitize(false); 226 | String result = Marked.marked("bold", options); 227 | assertEquals("bold
", result); 228 | } 229 | { 230 | Options options = new Options(); 231 | options.setSanitize(false); 232 | String result = Marked.marked("- test", options); 233 | // It's not clean but tag is closed at least. 234 | assertEquals("This is a paragraph
\n" + 249 | "This is a paragraph after a horizontal rule
", result); 251 | } 252 | 253 | private String loadResourceAsString(String path) throws IOException { 254 | InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(path); 255 | try { 256 | ByteArrayOutputStream out = new ByteArrayOutputStream(); 257 | byte[] buf = new byte[1024 * 8]; 258 | int length = 0; 259 | while((length = in.read(buf)) != -1){ 260 | out.write(buf, 0, length); 261 | } 262 | return new String(out.toByteArray(), "UTF-8"); 263 | } finally { 264 | in.close(); 265 | } 266 | } 267 | 268 | @Test 269 | public void testHardLineBreakWithSpaces() { 270 | String result = Marked.marked("Line 1 \n" + 271 | "Line 2"); 272 | assertEquals("Line 1
\n" +
273 | " Line 2
Line 1
\n" +
281 | " Line 2
Caution
3 |Advises about risks or negative outcomes of certain actions.
4 |Important
3 |Key information users need to know to achieve their goal.
4 |Note
3 |Useful information that users should know, even when skimming content.
4 |Note
3 |Useful information that users should know, even when skimming content.
4 |Tip
7 |A tip!
8 |A simple paragraph before.
2 |Note
4 |Useful information that users should know, even when skimming content.
5 |Another paragraph after.
-------------------------------------------------------------------------------- /src/test/resources/gfm/alerts/testWithParagraphBeforeAndAfter.md: -------------------------------------------------------------------------------- 1 | A simple paragraph before. 2 | 3 | > [!NOTE] 4 | > Useful information that users should know, 5 | > even when skimming content. 6 | 7 | Another paragraph after. -------------------------------------------------------------------------------- /src/test/resources/gfm/alerts/tip.html: -------------------------------------------------------------------------------- 1 |Tip
3 |Helpful advice for doing things better or more easily.
4 |Warning
3 |Urgent info that needs immediate user attention to avoid problems.
4 |Urgent info that needs immediate user attention to avoid problems.
4 |Attention!!!
3 |Urgent info that needs immediate user attention to avoid problems.
4 |GitBucket is the easily installable GitHub clone powered by Scala.
3 |The current version of GitBucket provides a basic features below:
5 |Following features are not implemented, but we will make them in the future release!
19 |If you want to try the development version of GitBucket, see the documentation for developers at Wiki.
25 |If you are using Gitbucket behind a webserver please make sure you have increased the client_max_body_size (on nginx)
32 |The default administrator account is root and password is root.
33 |or you can start GitBucket by java -jar gitbucket.war
without servlet container. In this case, GitBucket URL is http://[hostname]:8080/. You can specify following options.
To upgrade GitBucket, only replace gitbucket.war. All GitBucket data is stored in HOME/.gitbucket. So if you want to back up GitBucket data, copy this directory to the other disk.
41 |For Installation on Windows Server with IIS see this wiki page
42 |$ brew install gitbucket
45 | ==> Downloading https://github.com/takezoe/gitbucket/releases/download/1.10/gitbucket.war
46 | ######################################################################## 100.0%
47 | ==> Caveats
48 | Note: When using launchctl the port will be 8080.
49 |
50 | To have launchd start gitbucket at login:
51 | ln -sfv /usr/local/opt/gitbucket/*.plist ~/Library/LaunchAgents
52 | Then to load gitbucket now:
53 | launchctl load ~/Library/LaunchAgents/homebrew.mxcl.gitbucket.plist
54 | Or, if you don't want/need launchctl, you can just run:
55 | java -jar /usr/local/opt/gitbucket/libexec/gitbucket.war
56 | ==> Summary
57 | /usr/local/Cellar/gitbucket/1.10: 3 files, 42M, built in 11 seconds
58 |
59 | On OS X, copy the gitbucket.plist file to ~/Library/LaunchAgents/
Run the following commands in Terminal
to
launchctl load ~/Library/LaunchAgents/gitbucket.plist
launchctl unload ~/Library/LaunchAgents/gitbucket.plist
GitBucket has the plug-in system to extend GitBucket from outside of GitBucket. Some plug-ins are available now:
68 |You can find community plugins other than them at gitbucket community plugins.
75 |GITBUCKET_HOME/tmp
--https
option because it's possible to substitute in the base url#L10
or #L10-L15
in repository viewerHOME/.gitbucket
from HOME/gitbucket
to avoid problem like #243, but if data directory already exist at HOME/gitbucket, it continues being used.--host
option to bind specified host name in embedded Jetty mode--https=true
option to force https scheme when using embedded Jetty mode at the back of https proxyGitBucket added support for LDAP Authentication in the version 1.5. This Wiki page describes how to configure and troubleshoot it.
2 |Name | 12 |Description | 13 |Example Value | 14 |
---|---|---|
LDAP Host | 19 |LDAP host name | 20 |192.168.32.1 | 21 |
LDAP Port | 24 |LDAP port | 25 |389 (default 389) | 26 |
Bind DN | 29 |Username that has read access to the LDAP | 30 |uid=binduser,cn=bindclients,dc=example,dc=com | 31 |
Bind Password | 34 |Password for Bind DN account | 35 |password | 36 |
Base DN | 39 |Top level DN of your LDAP directory tree (used for user search) | 40 |dc=example,dc=com | 41 |
User name attribute | 44 |Name of the LDAP attribute. This is used as the GitBucket username | 45 |uid | 46 |
Mail address attribute | 49 |Email address of LDAP attribute | 50 ||
Enable TLS | 54 |Whether to use encrypted connection | 55 |checked | 56 |
Keystore | 59 |Path to the Java keystore | 60 |/etc/pki/java/cacerts | 61 |
Default system keystore is in:
66 |${JAVA_HOME}/lib/security/jssecacerts
67 |
68 | or in:
69 |${JAVA_HOME}/lib/security/cacerts
70 |
71 | Custom keystore can be set either in /etc/sysconfig/gitbucket
by specifying the following option:
GITBUCKET_JVM_OPTS="-Djavax.net.ssl.trustStore=/path/to/your/keystore"
73 |
74 | or in Gitbucket's System Settings as described above.
75 |You can use the following command to add your CA certificate to the keystore:
76 |$ keytool -import \
77 | -file /path/to/your/cacert.pem \
78 | -alias <your_cert_alias> \
79 | -keystore /path/to/your/keystore
80 |
81 | Older versions of Java don't know how to import certificate if it contains anything else than the certificate itself. Then it's necessary to strip everything else out like this:
82 |$ cat /path/to/your/cacert.pem | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/cacert.pem
83 | $ keytool -import -trustcacerts -alias <your_cert_alias> -file /tmp/cacert.pem -keystore /path/to/your/keystore
84 |
85 | You can list all keys from the keystore like this:
86 |$ keytool -list -keystore /path/to/your/keystore
87 |
88 | LDAP debugging was enabled in the version 1.7. So if something goes wrong, you should see the error in the log file:
90 |15:43:56.529 [qtp1820788751-15] INFO service.AccountService - LDAP Authentication Failed: System LDAP authentication failed.
91 | 15:43:37.386 [qtp1820788751-15] INFO service.AccountService - LDAP Authentication Failed: User does not exist
92 | 15:49:34.565 [qtp1820788751-18] INFO service.AccountService - LDAP Authentication Failed: User LDAP Authentication Failed.
93 | 15:41:09.370 [qtp1820788751-16] INFO service.AccountService - LDAP Authentication Failed: Can't find mail address.
94 |
95 | The following is the explanation for the above error messages:
96 |2 |6 | -------------------------------------------------------------------------------- /src/test/resources/multiple_blockquotes_1.md: -------------------------------------------------------------------------------- 1 | > P1. Line1. 2 | > P1. Line2. 3 | > 4 | > P2. Line1 5 | -------------------------------------------------------------------------------- /src/test/resources/multiple_blockquotes_2.html: -------------------------------------------------------------------------------- 1 |P1. Line1. 3 | P1. Line2.
4 |P2. Line1
5 |
2 |6 | -------------------------------------------------------------------------------- /src/test/resources/multiple_blockquotes_2.md: -------------------------------------------------------------------------------- 1 | > P1. Line1. 2 | > P1. Line2. 3 | 4 | > P2. Line1 5 | -------------------------------------------------------------------------------- /src/test/resources/nested_content_of_list.html: -------------------------------------------------------------------------------- 1 |P1. Line1. 3 | P1. Line2.
4 |P2. Line1
5 |
4 |6 |Why? They allow you to define all the properties of an object in one place.
5 |
7 | function getKey(k) {
8 | return `a key named ${k}`;
9 | }
10 |
11 | // bad
12 | const obj = {
13 | id: 5,
14 | name: 'San Francisco',
15 | };
16 | obj[getKey('enabled')] = true;
17 |
18 | // good
19 | const obj = {
20 | id: 5,
21 | name: 'San Francisco',
22 | [getKey('enabled')]: true,
23 | };
24 |
6.x | 5 |3.3.5 | 6 |
---|---|
2 |-------------------------------------------------------------------------------- /src/test/resources/quote.md: -------------------------------------------------------------------------------- 1 | > This is a quoting message 2 | > That spans over several lines 3 | 4 | > **File > Settings > Install JetBrains plugin** -------------------------------------------------------------------------------- /src/test/resources/stackoverflow.txt: -------------------------------------------------------------------------------- 1 | 2015-10-10 08:25:23,915 INFO [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final 2 | 2015-10-10 08:25:24,262 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final 3 | 2015-10-10 08:25:24,359 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) starting 4 | 2015-10-10 08:25:24,362 DEBUG [org.jboss.as.config] (MSC service thread 1-7) Configured system properties: 5 | awt.toolkit = sun.awt.windows.WToolkit 6 | file.encoding = MS932 7 | file.encoding.pkg = sun.io 8 | file.separator = \ 9 | java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment 10 | java.awt.printerjob = sun.awt.windows.WPrinterJob 11 | java.class.path = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\jboss-modules.jar 12 | java.class.version = 52.0 13 | java.endorsed.dirs = C:\work\Java\jdk1.8.0_51\jre\lib\endorsed 14 | java.ext.dirs = C:\work\Java\jdk1.8.0_51\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext 15 | java.home = C:\work\Java\jdk1.8.0_51\jre 16 | java.io.tmpdir = C:\Users\testuser\AppData\Local\Temp\ 17 | java.library.path = C:\work\Java\jdk1.8.0_51\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\ATI Stream\bin\x86_64;C:\Program Files (x86)\ATI Stream\bin\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Sony\VAIO Improvement;C:\Program Files (x86)\Justsystems\JSLIB32\;C:\Program Files (x86)\Sony\VAIO Startup Setting Tool;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\work\Java\jdk1.8.0_51\bin;C:\work\gradle\gradle-2.3\bin;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\nodejs\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Users\testuser\AppData\Roaming\npm;C:\Users\testuser\AppData\Local\atom\bin;. 18 | java.net.preferIPv4Stack = true 19 | java.runtime.name = Java(TM) SE Runtime Environment 20 | java.runtime.version = 1.8.0_51-b16 21 | java.specification.name = Java Platform API Specification 22 | java.specification.vendor = Oracle Corporation 23 | java.specification.version = 1.8 24 | java.util.logging.manager = org.jboss.logmanager.LogManager 25 | java.vendor = Oracle Corporation 26 | java.vendor.url = http://java.oracle.com/ 27 | java.vendor.url.bug = http://bugreport.sun.com/bugreport/ 28 | java.version = 1.8.0_51 29 | java.vm.info = mixed mode 30 | java.vm.name = Java HotSpot(TM) 64-Bit Server VM 31 | java.vm.specification.name = Java Virtual Machine Specification 32 | java.vm.specification.vendor = Oracle Corporation 33 | java.vm.specification.version = 1.8 34 | java.vm.vendor = Oracle Corporation 35 | java.vm.version = 25.51-b03 36 | javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder 37 | javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory 38 | javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory 39 | javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory 40 | javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory 41 | javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory 42 | javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory 43 | javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory 44 | javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory 45 | javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory 46 | jboss.home.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final 47 | jboss.host.name = vaioz 48 | jboss.modules.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\modules 49 | jboss.modules.system.pkgs = org.jboss.byteman 50 | jboss.node.name = vaioz 51 | jboss.qualified.host.name = vaioz 52 | jboss.server.base.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone 53 | jboss.server.config.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\configuration 54 | jboss.server.data.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\data 55 | jboss.server.deploy.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\data\content 56 | jboss.server.log.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\log 57 | jboss.server.name = vaioz 58 | jboss.server.persist.config = true 59 | jboss.server.temp.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\tmp 60 | line.separator = 61 | 62 | logging.configuration = file:C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\configuration/logging.properties 63 | module.path = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\modules 64 | org.jboss.boot.log.file = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\log\server.log 65 | org.jboss.resolver.warning = true 66 | org.xml.sax.driver = __redirected.__XMLReaderFactory 67 | os.arch = amd64 68 | os.name = Windows 8.1 69 | os.version = 6.3 70 | path.separator = ; 71 | program.name = standalone.bat 72 | sun.arch.data.model = 64 73 | sun.boot.class.path = C:\work\Java\jdk1.8.0_51\jre\lib\resources.jar;C:\work\Java\jdk1.8.0_51\jre\lib\rt.jar;C:\work\Java\jdk1.8.0_51\jre\lib\sunrsasign.jar;C:\work\Java\jdk1.8.0_51\jre\lib\jsse.jar;C:\work\Java\jdk1.8.0_51\jre\lib\jce.jar;C:\work\Java\jdk1.8.0_51\jre\lib\charsets.jar;C:\work\Java\jdk1.8.0_51\jre\lib\jfr.jar;C:\work\Java\jdk1.8.0_51\jre\classes 74 | sun.boot.library.path = C:\work\Java\jdk1.8.0_51\jre\bin 75 | sun.cpu.endian = little 76 | sun.cpu.isalist = amd64 77 | sun.desktop = windows 78 | sun.io.unicode.encoding = UnicodeLittle 79 | sun.java.command = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\jboss-modules.jar -mp C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\modules org.jboss.as.standalone -Djboss.home.dir=C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final 80 | sun.java.launcher = SUN_STANDARD 81 | sun.jnu.encoding = MS932 82 | sun.management.compiler = HotSpot 64-Bit Tiered Compilers 83 | sun.os.patch.level = 84 | sun.stderr.encoding = ms932 85 | sun.stdout.encoding = ms932 86 | user.country = JP 87 | user.dir = C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\bin 88 | user.home = C:\Users\testuser 89 | user.language = ja 90 | user.name = testuser 91 | user.script = 92 | user.timezone = Asia/Tokyo 93 | user.variant = 94 | 2015-10-10 08:25:24,364 DEBUG [org.jboss.as.config] (MSC service thread 1-7) VM Arguments: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\log\server.log -Dlogging.configuration=file:C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\configuration/logging.properties 95 | 2015-10-10 08:25:25,994 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 14) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/subsystem=batch' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 96 | 2015-10-10 08:25:25,995 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 21) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 97 | 2015-10-10 08:25:26,063 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http) 98 | 2015-10-10 08:25:26,090 INFO [org.xnio] (MSC service thread 1-1) XNIO version 3.3.1.Final 99 | 2015-10-10 08:25:26,100 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.3.1.Final 100 | 2015-10-10 08:25:26,167 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors 101 | 2015-10-10 08:25:26,206 INFO [org.jboss.as.connector] (MSC service thread 1-5) WFLYJCA0009: Starting JCA Subsystem (IronJacamar 1.2.4.Final) 102 | 2015-10-10 08:25:26,220 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem. 103 | 2015-10-10 08:25:26,238 INFO [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem 104 | 2015-10-10 08:25:26,251 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique. 105 | 2015-10-10 08:25:26,254 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension 106 | 2015-10-10 08:25:26,268 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem 107 | 2015-10-10 08:25:26,295 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main] 108 | 2015-10-10 08:25:26,318 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 109 | 2015-10-10 08:25:26,365 INFO [org.jboss.as.security] (MSC service thread 1-8) WFLYSEC0001: Current PicketBox version=4.9.2.Final 110 | 2015-10-10 08:25:26,405 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.2.9.Final starting 111 | 2015-10-10 08:25:26,406 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0003: Undertow 1.2.9.Final starting 112 | 2015-10-10 08:25:26,628 INFO [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 4.0.9.Final 113 | 2015-10-10 08:25:26,748 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = h2 114 | 2015-10-10 08:25:26,752 INFO [org.jboss.as.naming] (MSC service thread 1-2) WFLYNAM0003: Starting Naming Service 115 | 2015-10-10 08:25:26,756 INFO [org.jboss.as.mail.extension] (MSC service thread 1-7) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default] 116 | 2015-10-10 08:25:26,858 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final/welcome-content 117 | 2015-10-10 08:25:26,871 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0012: Started server default-server. 118 | 2015-10-10 08:25:26,992 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting 119 | 2015-10-10 08:25:27,123 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on /127.0.0.1:8080 120 | 2015-10-10 08:25:27,270 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS] 121 | 2015-10-10 08:25:27,283 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) WFLYDS0013: Started FileSystemDeploymentService for directory C:\work\wildfly-9.0.1.Final\wildfly-9.0.1.Final\standalone\deployments 122 | 2015-10-10 08:25:27,608 INFO [org.jboss.ws.common.management] (MSC service thread 1-5) JBWS022052: Starting JBoss Web Services - Stack CXF Server 5.0.0.Final 123 | 2015-10-10 08:25:27,807 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management 124 | 2015-10-10 08:25:27,810 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990 125 | 2015-10-10 08:25:27,811 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) started in 4401ms - Started 203 of 379 services (210 services are lazy, passive or on-demand) -------------------------------------------------------------------------------- /src/test/resources/stackoverflow2.txt: -------------------------------------------------------------------------------- 1 | ["/path/to/rails/lib/active_record/associations/has_many_association.rb:80:in `cached_counter_attribute_name'", 2 | "/path/to/rails/lib/active_record/associations/has_many_association.rb:103:in `inverse_updates_counter_cache?'", 3 | "/path/to/rails/lib/active_record/associations/has_many_association.rb:113:in `delete_records'", 4 | "/path/to/rails/lib/active_record/associations/collection_association.rb:493:in `remove_records'", 5 | "/path/to/rails/lib/active_record/associations/collection_association.rb:486:in `block in delete_or_destroy'", 6 | "/path/to/rails/lib/active_record/associations/collection_association.rb:152:in `block in transaction'", 7 | "/path/to/rails/lib/active_record/connection_adapters/abstract/database_statements.rb:200:in `transaction'", 8 | "/path/to/rails/lib/active_record/transactions.rb:209:in `transaction'", 9 | "/path/to/rails/lib/active_record/associations/collection_association.rb:151:in `transaction'", 10 | "/path/to/rails/lib/active_record/associations/collection_association.rb:486:in `delete_or_destroy'", 11 | "/path/to/rails/lib/active_record/associations/collection_association.rb:247:in `destroy'", 12 | "/path/to/rails/lib/active_record/associations/collection_association.rb:170:in `destroy_all'", 13 | "/path/to/rails/lib/active_record/associations/has_many_association.rb:26:in `handle_dependency'", 14 | "/path/to/rails/lib/active_record/associations/builder/association.rb:97:in `has_many_dependent_for_ary_royalty_details'", 15 | "/path/to/rails/lib/active_support/callbacks.rb:377:in `_run__901941141290416734__destroy__callbacks'", 16 | "/path/to/rails/lib/active_support/callbacks.rb:80:in `run_callbacks'", 17 | "/path/to/rails/lib/active_record/callbacks.rb:289:in `destroy'", 18 | "/path/to/rails/lib/active_record/transactions.rb:265:in `block in destroy'", 19 | "/path/to/rails/lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'", 20 | "/path/to/rails/lib/active_record/connection_adapters/abstract/database_statements.rb:200:in `transaction'", 21 | "/path/to/rails/lib/active_record/transactions.rb:209:in `transaction'", 22 | "/path/to/rails/lib/active_record/transactions.rb:323:in `with_transaction_returning_status'", 23 | "/path/to/rails/lib/active_record/transactions.rb:265:in `destroy'", 24 | "/path/to/rails/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'", 25 | "/path/to/rails/lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'", 26 | "/path/to/rails/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'", 27 | "/path/to/rails/lib/active_record/transactions.rb:209:in `transaction'", 28 | "/path/to/rails/lib/action_controller/metal/implicit_render.rb:4:in `send_action'", 29 | "/path/to/rails/lib/abstract_controller/base.rb:189:in `process_action'", 30 | "/path/to/rails/lib/action_controller/metal/rendering.rb:10:in `process_action'", 31 | "/path/to/rails/lib/abstract_controller/callbacks.rb:18:in `block in process_action'", 32 | "/path/to/rails/lib/active_support/callbacks.rb:423:in `_run__1216070983823669037__process_action__callbacks'", 33 | "/path/to/rails/lib/active_support/callbacks.rb:80:in `run_callbacks'", -------------------------------------------------------------------------------- /src/test/resources/table.html: -------------------------------------------------------------------------------- 1 |This is a quoting message That spans over several lines
3 |File > Settings > Install JetBrains plugin
4 |
aa | 5 |aa | 6 |7 | |
---|---|---|
bb | 12 |bb | 13 |cc | 14 |
Tables | 21 |Are | 22 |Cool | 23 |
---|---|---|
col 1 is | 28 |left-aligned | 29 |$1600 | 30 |
col 2 is | 33 |centered | 34 |$12 | 35 |
col 3 is | 38 |right-aligned | 39 |$1 | 40 |
If you are interested in GitBucket development, you can find documents for GitBucket development at: https://github.com/takezoe/gitbucket/blob/master/doc/readme.md
-------------------------------------------------------------------------------- /src/test/resources/wikilink.md: -------------------------------------------------------------------------------- 1 | Welcome to the GitBucket wiki! 2 | ==== 3 | * [[ SSH access to repository]] 4 | * [[LDAP Authentication Settings]] 5 | * [[Installation on IIS and Helicontech Zoo]] 6 | * [[Reverse proxy with Nginx]] 7 | * [[Reverse proxy with Apache]] 8 | * [[Setup Jenkins GitHub pull request builder plugin]] 9 | * [[Connect to H2 database]] 10 | * [[How to Close/Reference issues & pull request]] 11 | * [[Backup]] 12 | * [[API/WebHook]] 13 | 14 | If you are interested in GitBucket development, you can find documents for GitBucket development at: https://github.com/takezoe/gitbucket/blob/master/doc/readme.md --------------------------------------------------------------------------------