-
Notifications
You must be signed in to change notification settings - Fork 131
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
Disable export of org-babel src blocks #430
Comments
I've actually figured out how to make this work:
(after! org
(setq org-confirm-babel-evaluate nil)
(setq org-export-use-babel t))
#+property: header-args :eval never-export Make sure to #+begin_src bash :exports results
ls -l
#+end_src In the exported markdown file I only have the |
Hello, I am unable to reproduce this issue as you can see in this test that I just added based on this issue: 80a49c0 So I believe that it's something else in your config that's messing this up.
This doesn't change anything, but you don't need
I didn't need that.. your Org recipe to reproduce the issue worked just fine.. did not show that issue.
You shouldn't need to do that in any case.. just refreshing the Org buffer always re-evaluates the properties. |
See the deployed test at https://ox-hugo.scripter.co/test/issues/430-disabling-exporting-of-code-blocks/ .. and exported test Markdown: https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/test/site/content/issues/430-disabling-exporting-of-code-blocks.md |
Actual Behavior
When I export that ORG buffer I get:
Expected Behavior
I would expect only the #+RESULTS section to be exported.
How to Reproduce the Issue
Create a new ORG buffer with the following content and export using
ox-hugo
.Example Org File
Generated Markdown File or Error
Ox-Hugo Debug Information
Debug Info
|org-hugo-section |"posts"|
|org-hugo-use-code-for-kbd |nil|
|org-hugo-preserve-filling |t|
|org-hugo-delete-trailing-ws |t|
|org-hugo-prefer-hyphen-in-tags |t|
|org-hugo-allow-spaces-in-tags |t|
|org-hugo-tag-processing-functions |(org-hugo--tag-processing-fn-replace-with-spaces-maybe org-hugo--tag-processing-fn-replace-with-hyphens-maybe)|
|org-hugo-auto-set-lastmod |nil|
|org-hugo-export-with-toc |nil|
|org-hugo-export-with-section-numbers |nil|
|org-hugo-front-matter-format |"toml"|
|org-hugo-default-static-subdirectory-for-externals |"ox-hugo"|
|org-hugo-external-file-extensions-allowed-for-copying |("jpg" "jpeg" "tiff" "png" "svg" "gif" "mp4" "pdf" "odt" "doc" "ppt" "xls" "docx" "pptx" "xlsx")|
|org-hugo-date-format |"%Y-%m-%dT%T%z"|
|org-hugo-paired-shortcodes |""|
|org-hugo-langs-no-descr-in-code-fences |nil|
|org-hugo-suppress-lastmod-period |0.0|
|org-hugo-front-matter-format |"toml"|
The text was updated successfully, but these errors were encountered: