!rUhEinythPhVTdddsb:matrix.org

org-mode

860 Members
org-mode: digital and analog122 Servers

Load older messages


SenderMessageTime
24 Mar 2025
@feeds:integrations.ems.hostFeeds New post in etc/ORG-NEWS: Ensure that gnus-other-frame-object is alive before selecting 17:28:52
25 Mar 2025
@bikooo2:nerdsin.space@bikooo2:nerdsin.space removed their profile picture.10:47:07
@bikooo2:nerdsin.space@bikooo2:nerdsin.space removed their display name Bikooo2.10:47:09
@bikooo2:nerdsin.space@bikooo2:nerdsin.space left the room.10:47:10
26 Mar 2025
@groceryheist:matrix.orggroceryheist set a profile picture.16:20:17
27 Mar 2025
@bacardi55:m.bacardi55.iobacardi55

Hi! Question(s) from an emacs n00b: When I export from org to markdown or html, links with gemini:// urls are ignored and removed from export (eg: [[gemini://example.com][example capsule]] becomes in markdown example capsule ).
Is my understanding correct that this is because gemini is not a known hyperlink type and that I need to so something similar as this: https://orgmode.org/manual/Adding-Hyperlink-Types.html but for gemini links? And iff yes, do I need to declare the 3 :follow :export :store or could I simply do the :export part and be done with it?
Thanks!

13:25:37
@gergely:polonkai.euGergely Polonkai :export is what you need if you want to be able to export gemini links 13:43:28
@gergely:polonkai.euGergely Polonkai :follow is needed if you want to follow such links in an org-mode buffer 13:43:56
@gergely:polonkai.euGergely Polonkai :store is needed for org-store-link so it knows how and what to put in Org documents 13:44:36
@gergely:polonkai.euGergely Polonkai also, see the documentation of variable org-link-parameters 13:45:20
@bacardi55:m.bacardi55.iobacardi55

Thanks, that's helpful 🙏

13:53:53
@feeds:integrations.ems.hostFeeds New post in etc/ORG-NEWS: Capitalize JavaScript correctly 18:55:00
28 Mar 2025
@sents:matrix.orgsents changed their display name from sents ꙮ to sents.07:34:50
29 Mar 2025
@feeds:integrations.ems.hostFeeds New post in etc/ORG-NEWS: org-preview-latex-process-alist: Add xelatex support for latex preview 11:11:12
@feeds:integrations.ems.hostFeeds New post in etc/ORG-NEWS: oc-basic.el: New option org-cite-basic-complete-key-crm-separator 18:04:52
30 Mar 2025
@dadinn:matrix.orgdadinn

I have configured some global values in my init.el for org-tag-alist and org-tab-persisent-alist.

I would like to override these in a .dir-local.el for a specific project. I have the following entries:

((org-mode .
  ((org-tag-persistent-alist ("drill" . ?d))
   (org-tags-exclude-from-inheritance "drill"))))

When I load an org file, I do see that the variables are correctly set as file-local variables. Yet, when I try to add a tag, it still only shows the originally set global values, and the "drill" tag is not even included.

What could be the issue?

08:27:46
@dadinn:matrix.orgdadinn Khm, I mean obviously I am playing around with org-drill. 08:29:15
@karthink:matrix.orgkarthink What is the value of org-current-tag-alist? 23:07:19
31 Mar 2025
@0402-saline:matrix.org0402-saline

I am trying to use babel blocks to dynamically generate some simple HTML to use in an org-publish project to make a static site.

I just want to be able to change an image in a sidebar depending on what page the sidebar is on. So I wrote some elisp to format the HTML and insert a given path and description - test and works as expected.

The trouble comes when trying to use this with org-publish. This is what I thought would work (this is at the top of a file in the content directory):

#+BEGIN_SRC org :noweb yes :export results :results value raw :wrap export html
<<sidebar(img-path="../images/test.jpg", img-desc="Test image")>>
#+END_SRC

Note: The result is still wrapped in a

 even if I swap org for html on the block making the noweb call.

Problem is it gets wrapped in some divs and a pre that I don't want.

<div class="org-src-container">
<pre class="src src-org></pre>
<generated-html-lands-here>
</div>

The result is html inserted into the page as text instead of rendered html. If I use the same set of functions with org-project-publish-alist :html-preamble the sidebar is rendered correctly but I lose the ability to change the image (which is the whole point).

If I manually move the generated html out of the

 in firefox via dev tools and reload the sidebar renders correctly so the generated html is correct. The problem seems to be how org-publish is wrapping the result.

16:31:48
@0402-saline:matrix.org0402-saline *

I am trying to use babel blocks to dynamically generate some simple HTML to use in an org-publish project to make a static site.

I just want to be able to change an image in a sidebar depending on what page the sidebar is on. So I wrote some elisp to format the HTML and insert a given path and description - test and works as expected.

The trouble comes when trying to use this with org-publish. This is what I thought would work (this is at the top of a file in the content directory):

#+BEGIN_SRC org :noweb yes :export results :results value raw :wrap export html
<<sidebar(img-path="../images/test.jpg", img-desc="Test image")>>
#+END_SRC

Note: The result is still wrapped in a

 even if I swap org for html on the block making the noweb call.

Problem is it gets wrapped in some divs and a pre that I don't want.

<div class="org-src-container">
<pre class="src src-org></pre>
<generated-html-lands-here>
</div>

The result is html inserted into the page as text instead of rendered html. If I use the same set of functions with org-project-publish-alist :html-preamble the sidebar is rendered correctly but I lose the ability to change the image (which is the whole point).

If I manually move the generated html out of the

 in firefox via dev tools and reload the sidebar renders correctly so the generated html is correct. The problem seems to be how org-publish is wrapping the result.

16:32:11
@0402-saline:matrix.org0402-saline *

I am trying to use babel blocks to dynamically generate some simple HTML to use in an org-publish project to make a static site.

I just want to be able to change an image in a sidebar depending on what page the sidebar is on. So I wrote some elisp to format the HTML and insert a given path and description - test and works as expected.

The trouble comes when trying to use this with org-publish. This is what I thought would work (this is at the top of a file in the content directory):

#+BEGIN_SRC org :noweb yes :export results :results value raw :wrap export html
<<sidebar(img-path="../images/test.jpg", img-desc="Test image")>>
#+END_SRC

Note: The result is still wrapped in a <\pre> even if I swap org for html on the block making the noweb call.

Problem is it gets wrapped in some divs and a pre that I don't want.

<div class="org-src-container">
<pre class="src src-org></pre>
<generated-html-lands-here>
</div>

The result is html inserted into the page as text instead of rendered html. If I use the same set of functions with org-project-publish-alist :html-preamble the sidebar is rendered correctly but I lose the ability to change the image (which is the whole point).

If I manually move the generated html out of the <\pre> in firefox via dev tools and reload the sidebar renders correctly so the generated html is correct. The problem seems to be how org-publish is wrapping the result.

16:32:41
@0402-saline:matrix.org0402-saline *

I am trying to use babel blocks to dynamically generate some simple HTML to use in an org-publish project to make a static site.

I just want to be able to change an image in a sidebar depending on what page the sidebar is on. So I wrote some elisp to format the HTML and insert a given path and description - test and works as expected.

The trouble comes when trying to use this with org-publish. This is what I thought would work (this is at the top of a file in the content directory):

#+BEGIN_SRC org :noweb yes :export results :results value raw :wrap export html
<<sidebar(img-path="../images/test.jpg", img-desc="Test image")>>
#+END_SRC

Note: The result is still wrapped in a <\pre> tag even if I swap org for html on the block making the noweb call.

Problem is it gets wrapped in some divs and a pre that I don't want.

<div class="org-src-container">
<pre class="src src-org></pre>
<generated-html-lands-here>
</div>

The result is html inserted into the page as text instead of rendered html. If I use the same set of functions with org-project-publish-alist :html-preamble the sidebar is rendered correctly but I lose the ability to change the image (which is the whole point).

If I manually move the generated html out of the <\pre> tag in firefox via dev tools and reload the sidebar renders correctly so the generated html is correct. The problem seems to be how org-publish is wrapping the result - which I cannot figure out how to control.

16:33:13
@yantar92:matrix.orgyantar92 (Org maintainer)
In reply to @0402-saline:matrix.org

I am trying to use babel blocks to dynamically generate some simple HTML to use in an org-publish project to make a static site.

I just want to be able to change an image in a sidebar depending on what page the sidebar is on. So I wrote some elisp to format the HTML and insert a given path and description - test and works as expected.

The trouble comes when trying to use this with org-publish. This is what I thought would work (this is at the top of a file in the content directory):

#+BEGIN_SRC org :noweb yes :export results :results value raw :wrap export html
<<sidebar(img-path="../images/test.jpg", img-desc="Test image")>>
#+END_SRC

Note: The result is still wrapped in a <\pre> tag even if I swap org for html on the block making the noweb call.

Problem is it gets wrapped in some divs and a pre that I don't want.

<div class="org-src-container">
<pre class="src src-org></pre>
<generated-html-lands-here>
</div>

The result is html inserted into the page as text instead of rendered html. If I use the same set of functions with org-project-publish-alist :html-preamble the sidebar is rendered correctly but I lose the ability to change the image (which is the whole point).

If I manually move the generated html out of the <\pre> tag in firefox via dev tools and reload the sidebar renders correctly so the generated html is correct. The problem seems to be how org-publish is wrapping the result - which I cannot figure out how to control.

:exports not :export, also you may need :eval yes
16:48:21
@0402-saline:matrix.org0402-saline

Ah! The plural not plural always gets.
Oddly, if I correct to :exports this seems to break the noweb reference even if I add :eval yes.

I just get the noweb reference inserted into the html instead:

<span style="text-decoration: underline;">&lt;&lt;sidebar(img-path="../images/test.jpg", img-desc="test")&gt;&gt;</span>
16:53:30
@0402-saline:matrix.org0402-saline *

Ah! The plural not plural always gets.
Oddly, if I correct to :exports this seems to break the noweb reference even if I add :eval yes.

I just get the noweb reference inserted into the html instead:

<span style="text-decoration: underline;">&lt;&lt;sidebar(img-path="../images/test.jpg", img-desc="test")&gt;&gt;</span>

For clarity, the header is now:

#+BEGIN_SRC org :eval yes :noweb yes :exports html :results value raw :wrap export html
16:54:34
@0402-saline:matrix.org0402-saline *

Ah! The plural not plural always gets me.
Oddly, if I correct to :exports this seems to break the noweb reference even if I add :eval yes.

I just get the noweb reference inserted into the html instead:

<span style="text-decoration: underline;">&lt;&lt;sidebar(img-path="../images/test.jpg", img-desc="test")&gt;&gt;</span>

For clarity, the header is now:

#+BEGIN_SRC org :eval yes :noweb yes :exports html :results value raw :wrap export html
18:14:21
@0402-saline:matrix.org0402-saline

Oooookay, so this works when I export

#+call: sidebar[:results html](img-path="./images/test.jpg", img-desc="Test Image")

But I cannot seem to trigger it manually in the buffer with C-c C-c.

Pretty much no matter what I tried with the src block it always seems to either get inserted into a pre tag or nothing gets inserted (oddly this was the case with correctly my above from :export to :exports).

18:28:54
@yantar92:matrix.orgyantar92 (Org maintainer)Pre tags means that the block itself is exported, not the result18:30:10
@0402-saline:matrix.org0402-salineYes, I inferred as much. That isn't what I want and could not figure out how to make a src block not do that.18:31:08
@yantar92:matrix.orgyantar92 (Org maintainer)
In reply to @0402-saline:matrix.org
Yes, I inferred as much. That isn't what I want and could not figure out how to make a src block not do that.
Maybe try with emacs -q? I do not see anything obviously wrong
19:17:49

Show newer messages


Back to Room ListRoom Version: 1