-
Notifications
You must be signed in to change notification settings - Fork 1
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
Exclude code blocks from zim2obsidian formatting #21
Comments
Thank you for clarifying (and for your work on this!) Do you accept pull requests?
|
Sorry, I deleted my original comment before I saw your reply. I've just looked at it again and I think it can be considered a bug anyway. |
Bugfix: Exclude code blocks from zim2obsidian formatting (#21) TODO: Update test data.
I just committed v0.11.3 that should exclude code blocks. Update: |
- Fix CODE_BLOCK_MARKER - Fix a regression where lines that start and end code blocks are discarded (#21). - Update test data.
Please do not use the issue tracker for off-topic conversations, also not in closed issues. Remember that this will send email notifications that are distracting. Your concern is already clearly visible in the other issues and in the discussions, and I'm sure that anyone who wants to contribute will address it there. |
As of version 0.11.6, the zim2obsidian.py script excludes paragraphs that are enclosed with three backticks from conversion, as well as inline text enclosed with a single backtick (see #22). Actually, enclosing text with backticks is not the way to mark "verbatim" text as specified with Zim:
For "Inline code", there is no specification. For the record: The changes made with version 0.11.6 are actually working, but they are not bug fixes in the true meaning of the word. You can use them, but you should be aware that by using backticks you are deviating from the Zim specification. |
With version 0.13.0 the behavior as requested here is implemented, yet optional. |
Application/script
Describe the bug
The formatting in
zim2obsidian.py
should exclude any string that is in a code environment (surrounded by 3 backticks each, perhaps also in-line code environments?).In my case, I have code environments containing bibtex code which includes the character
@
and it got changed to#
like a tag.To Reproduce
zim2obsidian.py
to the root location of the copied zim repositorypython zim2obsidian.py
Expected behavior
Code environments should be excluded from the formatting.
Execution environment:
The text was updated successfully, but these errors were encountered: