Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DARIAH-DE
TextGridRep Portal
Commits
c22a6bc7
Commit
c22a6bc7
authored
Jun 07, 2020
by
Ubbo Veentjer
Browse files
add gfm-table extension for markdown
parent
40a9dcf2
Pipeline
#138605
passed with stages
in 10 minutes and 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
c22a6bc7
...
@@ -30,6 +30,7 @@ dependencies {
...
@@ -30,6 +30,7 @@ dependencies {
implementation
'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider'
implementation
'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider'
implementation
'com.atlassian.commonmark:commonmark:0.14.0'
implementation
'com.atlassian.commonmark:commonmark:0.14.0'
implementation
'com.atlassian.commonmark:commonmark-ext-heading-anchor:0.14.0'
implementation
'com.atlassian.commonmark:commonmark-ext-heading-anchor:0.14.0'
implementation
'com.atlassian.commonmark:commonmark-ext-gfm-tables:0.14.0'
implementation
'com.atlassian.commonmark:commonmark-ext-yaml-front-matter:0.14.0'
implementation
'com.atlassian.commonmark:commonmark-ext-yaml-front-matter:0.14.0'
implementation
'info.textgrid.middleware.clients:textgrid-clients:3.4.3'
implementation
'info.textgrid.middleware.clients:textgrid-clients:3.4.3'
developmentOnly
(
"org.springframework.boot:spring-boot-devtools"
)
developmentOnly
(
"org.springframework.boot:spring-boot-devtools"
)
...
...
docs/index.de.md
View file @
c22a6bc7
...
@@ -10,4 +10,4 @@ Alle veröffentlichten Inhalte sind nach dem Open-Access-Prinzip frei zugänglic
...
@@ -10,4 +10,4 @@ Alle veröffentlichten Inhalte sind nach dem Open-Access-Prinzip frei zugänglic
**Mitmachen**
**Mitmachen**
Möchten Sie eigenes XML-erschlossenes Material im TextGrid Repository zitierfähig archivieren und zugänglich machen?
Möchten Sie eigenes XML-erschlossenes Material im TextGrid Repository zitierfähig archivieren und zugänglich machen?
Nehmen Sie
[
Kontakt
](
https://textgrid.de/de/kontakt/
)
mit uns auf.
Nehmen Sie
[
Kontakt
](
https://textgrid.de/de/kontakt/
)
mit uns auf.
\ No newline at end of file
src/main/java/info/textgrid/rep/markdown/MarkdownRenderService.java
View file @
c22a6bc7
...
@@ -8,6 +8,7 @@ import java.util.List;
...
@@ -8,6 +8,7 @@ import java.util.List;
import
org.commonmark.Extension
;
import
org.commonmark.Extension
;
import
org.commonmark.ext.front.matter.YamlFrontMatterExtension
;
import
org.commonmark.ext.front.matter.YamlFrontMatterExtension
;
import
org.commonmark.ext.front.matter.YamlFrontMatterVisitor
;
import
org.commonmark.ext.front.matter.YamlFrontMatterVisitor
;
import
org.commonmark.ext.gfm.tables.TablesExtension
;
import
org.commonmark.ext.heading.anchor.HeadingAnchorExtension
;
import
org.commonmark.ext.heading.anchor.HeadingAnchorExtension
;
import
org.commonmark.node.Node
;
import
org.commonmark.node.Node
;
import
org.commonmark.parser.Parser
;
import
org.commonmark.parser.Parser
;
...
@@ -28,7 +29,8 @@ public class MarkdownRenderService {
...
@@ -28,7 +29,8 @@ public class MarkdownRenderService {
public
MarkdownRenderService
()
{
public
MarkdownRenderService
()
{
List
<
Extension
>
extensions
=
Arrays
.
asList
(
List
<
Extension
>
extensions
=
Arrays
.
asList
(
HeadingAnchorExtension
.
create
()
HeadingAnchorExtension
.
create
(),
TablesExtension
.
create
()
// YamlFrontMatterExtension.create()
// YamlFrontMatterExtension.create()
);
);
parser
=
Parser
.
builder
()
parser
=
Parser
.
builder
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment