Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
ef0061a6
Commit
ef0061a6
authored
Jan 06, 2021
by
Stefan Probst
Browse files
fix: add grid layout to about the service page
parent
abe4829b
Pipeline
#166303
passed with stage
in 4 minutes and 21 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
content/pages/service.mdx
View file @
ef0061a6
This diff is collapsed.
Click to expand it.
src/modules/markdown/Mdx.tsx
View file @
ef0061a6
...
...
@@ -37,6 +37,7 @@ const defaultComponents = {
h2
:
SectionTitle
,
h3
:
SubSectionTitle
,
ul
:
List
,
ol
:
OrderedList
,
}
function
AbsoluteOrRelativeLink
({
...
...
@@ -72,7 +73,15 @@ function isAbsoluteUrl(href: string) {
function
List
({
children
,
...
props
}:
ComponentPropsWithoutRef
<
'
ul
'
>
)
{
return
(
<
ul
className
=
"space-y-3 leading-loose"
{
...
props
}
>
<
ul
className
=
"pl-4 space-y-3 leading-loose list-disc"
{
...
props
}
>
{
children
}
</
ul
>
)
}
function
OrderedList
({
children
,
...
props
}:
ComponentPropsWithoutRef
<
'
ul
'
>
)
{
return
(
<
ul
className
=
"pl-4 space-y-3 leading-loose list-decimal"
{
...
props
}
>
{
children
}
</
ul
>
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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