-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(parser/renderer): support inline footnotes #183
feat(parser/renderer): support inline footnotes #183
Conversation
support for `footnote` and `footnoteref` macros also, rename `Content` to `Elements` in `Section` type. Fixes bytesparadise#139 Signed-off-by: Xavier Coulon <[email protected]>
} | ||
c := types.NewFootnotesCollector() | ||
// when | ||
content.Accept(c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of content.Accept
is not checked
} | ||
c := types.NewFootnotesCollector() | ||
// when | ||
content.Accept(c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of content.Accept
is not checked
pkg/types/grammar_types.go
Outdated
xrefsCollector := NewElementReferencesCollector() | ||
for _, e := range elements { | ||
if v, ok := e.(Visitable); ok { | ||
v.Accept(xrefsCollector) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of v.Accept
is not checked
pkg/types/grammar_types.go
Outdated
if v, ok := e.(Visitable); ok { | ||
v.Accept(c) | ||
v.Accept(footnotesCollector) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of v.Accept
is not checked
Signed-off-by: Xavier Coulon <[email protected]>
Signed-off-by: Xavier Coulon <[email protected]>
Signed-off-by: Xavier Coulon <[email protected]>
support for `footnote` and `footnoteref` macros also, rename `Content` to `Elements` in `Section` type. Fixes #138 Signed-off-by: Xavier Coulon <[email protected]>
support for
footnote
andfootnoteref
macrosalso, rename
Content
toElements
inSection
type.Fixes #139
Signed-off-by: Xavier Coulon [email protected]