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
Adjust the formatting of code #20
Comments
To be precise, the zim2obsidian script does not change at all the inline code formatting as exported by Zim. If you want to do it with zim2obsidian, you have to enhance the code for placing the "fences" around lines beginning with a tab character. This works only, if the tab characters that signify code block lines are not already escaped by subst_indent.py. I think, this problem is best solved by converting the original Zim notes as discussed in #8. |
Version 0.12.0 converts blocks that are indented with tabs to Obsidian code blocks that are fenced with three backticks. This is actually the correct method. However, it is in contrast to the behavior required with #11 and #21. |
Solved with version 0.13.0, see: #15 (comment) |
This script currently converts inline code with two `` and code blocks with tabs, whereas it should do it as mentioned here or according to the following examples:
A Zim code block:
The upper and lower
'''
from above should be converted to ``` in Obsidian.While the manual says that a code block can also start with a tab (or 4 spaces), it's rendered weirdly, so therefore the formatting with ``` should be preferred, as shown here:
While with a tab at the beginning, it looks like
The text was updated successfully, but these errors were encountered: