-
Notifications
You must be signed in to change notification settings - Fork 16
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
special blocks end lists #8
Comments
This is a known issue ---I've been meaning to get to it for some time. Maybe on the weekend I can get to it. The problem seems to lie with |
Perhaps this could be solved by indenting the #+begin_export and #+end_export to match the line above/below? |
That was exactly the fix ;-) Enjoy! |
Thanks for the update. This seems to fix the issue for blocks inside lists, but unfortunately not for blocks inside lists inside blocks. Would it be possible to instead indent the #+begin/end_export to the level of the #+begin/end_block tags before running the defblock'd function so that lists inside blocks aren't misaligned? Additonally, if you have time, I think de-indenting content before passing to the defblock'd function may make it easier to write a defblock that can be used inside lists. |
You're welcome =) Hmmm, for In general, a block has complete control over its contents and it can decide what to do with inner blocks... Maybe you want to use |
For example,
where
after processing (this was taken from |
That's a good suggestion ---thank-you! Would you please provide a more "realistic" use-case for this scenario; I haven't encountered it yet. |
I've been using this in my notes and this causes issues with things such as multiple-part theorems and lists of propositions containing proofs:
where I don't think I'm familiar enough with both elisp and the structure of this package to be able to implement the change soon, but I think the change should be to remove the Additionally it would make writing certain types of |
Thanks for the example =)
|
|
I've made some useful progress and have a solution. Unfortunately, the solution infects other parts of the system. The underlying cause is likely around the use of ‘org-indent-region’, but there may be more. For now, I've left my explorations under the heading “Issue ♯8”; which contains code that may eventually migrate to the location where ‘defblock’ is implemented. The system has gotten large and automated tests are needed.
It seems that the blocks created by this package cause lists to stop when exporting, as well as generally leaving empty lines after the content in the exported file. Would it be possible to have the blocks remain inside the list?
An example:
becomes
and similarly in HTML.
The text was updated successfully, but these errors were encountered: