Monorepo for Tangled tangled.org

appview: parse reference links from markdown body #760

merged opened by boltless.me targeting master from feat/mentions

Defined refResolver which will parse useful data from markdown body like @-mentions or issue/pr/comment mentions

Signed-off-by: Seongmin Lee git@boltless.me

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m4vklvknsc22
+3 -2
Interdiff #3 #4
appview/db/reference.go

This file has not been changed.

appview/issues/issues.go

This file has not been changed.

appview/models/reference.go

This file has not been changed.

appview/pages/markup/extension/atlink.go

This file has not been changed.

appview/pages/markup/markdown.go

This file has not been changed.

+3 -2
appview/pages/markup/reference_link.go
··· 11 11 "github.com/yuin/goldmark/ast" 12 12 "github.com/yuin/goldmark/text" 13 13 "tangled.org/core/appview/models" 14 + textension "tangled.org/core/appview/pages/markup/extension" 14 15 ) 15 16 16 17 // FindReferences collects all links referencing tangled-related objects ··· 34 35 return ast.WalkContinue, nil 35 36 } 36 37 switch n.Kind() { 37 - case KindAt: 38 - handle := n.(*AtNode).handle 38 + case textension.KindAt: 39 + handle := n.(*textension.AtNode).Handle 39 40 mentionsSet[handle] = struct{}{} 40 41 return ast.WalkSkipChildren, nil 41 42 case ast.KindLink:
appview/pulls/pulls.go

This file has not been changed.

appview/refresolver/resolver.go

This file has not been changed.

appview/state/router.go

This file has not been changed.

appview/state/state.go

This file has not been changed.

History

13 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview: parse reference links from markdown body
2/3 failed, 1/3 running
expand
expand 0 comments
pull request successfully merged
1 commit
expand
appview: parse reference links from markdown body
2/3 failed, 1/3 running
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
1/3 failed, 2/3 running
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments
1 commit
expand
appview: parse reference links from markdown body
3/3 success
expand
expand 0 comments