Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Documentation Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Utilities
Documentation Manager
Commits
33c07a92
Verified
Commit
33c07a92
authored
2 years ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
feat: add embed
parent
34f50e28
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
application/source/document/html.go
+2
-0
2 additions, 0 deletions
application/source/document/html.go
application/source/go.mod
+2
-1
2 additions, 1 deletion
application/source/go.mod
application/source/go.sum
+3
-0
3 additions, 0 deletions
application/source/go.sum
with
7 additions
and
1 deletion
application/source/document/html.go
+
2
−
0
View file @
33c07a92
...
...
@@ -8,6 +8,7 @@ import (
"crypto/md5"
"encoding/base64"
"fmt"
embed
"github.com/13rac1/goldmark-embed"
"github.com/PuerkitoBio/goquery"
"github.com/andybalholm/cascadia"
"github.com/gomarkdown/markdown"
...
...
@@ -606,6 +607,7 @@ func createHtmlFromMarkdown(text string) string {
extension
.
Linkify
,
extension
.
Table
,
extension
.
Strikethrough
,
embed
.
New
(),
extension
.
TaskList
),
goldmark
.
WithParserOptions
(
goldmarkParser
.
WithAutoHeadingID
(),
...
...
This diff is collapsed.
Click to expand it.
application/source/go.mod
+
2
−
1
View file @
33c07a92
...
...
@@ -8,6 +8,7 @@ require (
github.com/evanw/esbuild v0.14.49
github.com/gomarkdown/markdown v0.0.0-20221013030248-663e2500819c
github.com/gookit/color v1.5.2
github.com/gosimple/slug v1.13.1
github.com/jessevdk/go-flags v1.5.0
github.com/kelseyhightower/envconfig v1.4.0
github.com/mattn/go-shellwords v1.0.12
...
...
@@ -20,11 +21,11 @@ require (
)
require (
github.com/13rac1/goldmark-embed v0.0.0-20201220231550-e6806f2de66a // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/go-chi/chi/v5 v5.0.7 // indirect
github.com/go-chi/docgen v1.2.0 // indirect
github.com/go-chi/httprate v0.5.3 // indirect
github.com/gosimple/slug v1.13.1 // indirect
github.com/gosimple/unidecode v1.0.1 // indirect
github.com/tdewolff/parse/v2 v2.6.5 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
...
...
This diff is collapsed.
Click to expand it.
application/source/go.sum
+
3
−
0
View file @
33c07a92
github.com/13rac1/goldmark-embed v0.0.0-20201220231550-e6806f2de66a h1:97tpPJ82VuexbkbPLIzF4BrPy/4XalKF1CKyMFc1fs0=
github.com/13rac1/goldmark-embed v0.0.0-20201220231550-e6806f2de66a/go.mod h1:dxt3ggQZ3euHiXGfETfZPfA5OUpKgJn1s4vS+YT1MEU=
github.com/PuerkitoBio/goquery v1.8.0 h1:PJTF7AmFCFKk1N6V6jmKfrNH9tV5pNE6lZMkG0gta/U=
github.com/PuerkitoBio/goquery v1.8.0/go.mod h1:ypIiRMtY7COPGk+I/YbZLbxsxn9g5ejnI2HSMtkjZvI=
github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c=
...
...
@@ -73,6 +75,7 @@ github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHg
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yuin/goldmark v1.5.3 h1:3HUJmBFbQW9fhQOzMgseU134xfi6hU+mjWywx5Ty+/M=
github.com/yuin/goldmark v1.5.3/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment