Skip to content
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

Develop #156

Merged
merged 4 commits into from
Nov 9, 2020
Merged

Develop #156

merged 4 commits into from
Nov 9, 2020

Conversation

sergiocorreia
Copy link
Owner

No description provided.

- Overall new-style tables are now supported, but bugs related to corner cases still remain
- Fixed and reorganized test files a bit (still a mess overall)
- `debug` function moved from .`tools` to `.utils`, so it can be imported from modules that depend on `.tools` (it has no dependencies so utils is the natural place to put it)
- Table-related elements moved from `elements.py` to `table_elements.py`, as the SLOC was getting quite large in that module.
- Renamed `_decode_ica()` to `decode_ica()`, as the function is not really exposed externally
- All tests pass
- Fixed several small corner cases
@sergiocorreia
Copy link
Owner Author

This PR adds support for Pandoc 2.11.1

The code for creating tables is quite messy, sp. compared to everything else, so I'm not yet 100% sure that there are no corner cases that trigger errors. For instance, what if a table has a table body with an intermediate table head, but no content?

Also, most Pandoc elements are simple in that they just contain other elements plus attributes (like an url, title, etc.). But a table object is much more complex.

Copy link
Collaborator

@ickc ickc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging for now. There's some instances that a valid pandoc AST would not be parsed correctly, either from json to panflute AST, or vice versa. c.f. the test files in #142 (comment)

I'll test it more tomorrow and I think it is very close now. Thanks!

@ickc ickc merged commit 8e98bcc into master Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants