Skip to content

Commit

Permalink
Disable link reference transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Dec 10, 2024
1 parent aeaf58b commit 1c2e738
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@ func TextToBlocks(data string) (*pb.Block, error) {
util.Prioritized(newMultiCharInlineParser('|', "Spoiler"), 1000),
util.Prioritized(newMultiCharInlineParser('~', "Strikethrough"), 1000),

// We want to convert automatically linkified URLs to a format which
// seabird understands, just in case. It's better for
// interoperability.
util.Prioritized(extension.NewLinkifyParser(), 1000),
),
parser.WithParagraphTransformers(
util.Prioritized(parser.LinkReferenceParagraphTransformer, 100),
//util.Prioritized(parser.LinkReferenceParagraphTransformer, 100),
),
)
doc := parser.Parse(reader)
Expand Down

0 comments on commit 1c2e738

Please sign in to comment.