-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Adding support for "role" attributes for the DocBook reader (second try!) #10932
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
Open
yanntrividic
wants to merge
59
commits into
jgm:main
Choose a base branch
from
yanntrividic:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
e7f187b
Modifying return value for parseBlock, parseInline
yanntrividic 2c7d45d
Adding roles to headers for sections with roles
yanntrividic b626d72
Add roles to els parsed with withOptionalTitle
yanntrividic 4b1bc98
Units tests for this PR and new role attributes
yanntrividic 6b2d679
Merge branch 'jgm:main' into main
yanntrividic d932d30
Merge branch 'jgm:main' into main
yanntrividic 08dbdfa
Adding roles to headers for sections with roles
yanntrividic 5af69cb
Add roles to els parsed with withOptionalTitle
yanntrividic 71edd85
Units tests for this PR and new role attributes
yanntrividic 58f471c
pandoc-lua-engine: Allow hslua-2.4.0 in the tests
tarleb 9d10af7
Lua: add more UTF-8-aware file operations to `pandoc.system`.
tarleb 198eaa0
CI: use windows-2022. windows-2019 is no longer provided.
jgm dbcdb0c
PDF: make images from MediaBag available in tmp dir...
jgm 71743f9
PDF: Use utf8ToText for LaTeX log messages.
jgm 0d68b91
doc/lua-filters.md: Add example on using pandoc.Table constructor. (#…
SeanESCA 10307e3
Update `--version` copyright dates.
jgm a493340
Use hardcoded string "pandoc" for program name in `--version`.
jgm b718f9e
Export `copyrightMessage` from Text.Pandoc.App module.
jgm 8f66ada
Revert "Export `copyrightMessage` from Text.Pandoc.App module."
jgm 27b2926
Remove code duplication around version info.
jgm f0fc5fd
Typst writer: set lang attribute in Divs.
jgm 965c74a
Lua: add `normalize` function to *Pandoc* objects
tarleb 356a507
Use latest dev citeproc and update the default CSL...
jgm 2de4cda
Fix citeproc-87 test.
jgm eb2f3d4
Fix pandoc-citeproc-64 test.
jgm 1d8218e
Use latest dev citeproc.
jgm 55cbd96
Fix a test.
jgm fd2c684
Fixed cabal.project stanza for citeproc.
jgm 3cd261e
Typst: add support for custom and/or translated "Abstract" titles
tarleb 957add2
Markdown writer: match indents in definition items
tarleb 02ce2ef
Djot writer: fix duplicate attributes before section headings.
jgm 7cd0289
T.P.ImageSize: support avif images.
jgm 23d480d
Fix incomplete pattern matches from new ImageType constructor.
jgm a52d8cb
Fix CI so that -Wall -Werror works again!
jgm 3d1be4e
Makefile: add -Wall to ghc options.
jgm 8dfb2fa
Lua: add function `pandoc.path.exists`.
tarleb addfa97
Use latest dev citeproc.
jgm a42a84c
Revise Makefile and CI treatment of `--ghc-options`.
jgm 6e46b62
Ensure that all modules have explicit export lists.
jgm 5f56d62
CI: don't warn on unused imports in ghc 9.10+.
jgm 538bb04
CI: another stab at preventing ghc 9.10, 9.12 from erroring.
jgm 16b6ec0
Fix CI again.
jgm f9ce3cd
Use latest dev citeproc.
jgm 9b7287e
Use dev texmath.
jgm 8ecb2a8
Fix stack.yaml.
jgm e1e2493
Add features to typst base template.
christopherkenny c365732
Org reader: Recognize "fast access" characters in TODO state definiti…
RyanGibb 53c3f88
DocBook reader: Add rowspan support. (#10981)
SeanESCA 6070379
Revert a test case that changed due to a reverted citeproc change.
jgm b11afcf
Use latest dev citeproc.
jgm 7a30647
T.P.PDF: clean up `makePDF`
tarleb 6f61b8e
PDF: allow `pdflatex-dev` and `lualatex-dev` as PDF engines
tarleb e7e1725
PDF: Improve error readability when pdf-engine is not supported.
tarleb a517533
Merge branch 'main' of https://github.com/yanntrividic/pandoc
yanntrividic 4c01975
Adding roles to headers for sections w/ roles
yanntrividic eb8a928
Add roles to els parsed with withOptionalTitle
yanntrividic cc96c03
Merge branch 'main' of https://github.com/yanntrividic/pandoc
yanntrividic ce65132
Units tests for this PR and new role attributes
yanntrividic 7d6d428
Merge branch 'main' of https://github.com/yanntrividic/pandoc
yanntrividic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We shouldn't be mixing the use of section Divs and bare headings in the same document the way you do here. Why not add the role attribute to the Header? When the resulting AST is passed through
makeSections
, it will become a section div.Uh oh!
There was an error while loading. Please reload this page.
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.
Hello, thanks for taking the time to have a look at it again. I proposed this modification following what I understood from your recommendation in #10665 (comment).
The problem that led to this modification was that the
role
attributes were applied recursively to all child sections, because of the wayaddPandocAttributes
is designed. From my understanding, we arrived to this "acceptable" solution to avoid this recursion.Should we figure out something else then?