From 1515c7a1e0765eaf1487eddeed2b95ee1fa75f28 Mon Sep 17 00:00:00 2001 From: Noboru Ota Date: Sat, 28 May 2022 16:46:21 +0200 Subject: [PATCH] doc: fix examples' links --- docs/org-transclusion-manual.org | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/org-transclusion-manual.org b/docs/org-transclusion-manual.org index 9fb3b67..80445c3 100644 --- a/docs/org-transclusion-manual.org +++ b/docs/org-transclusion-manual.org @@ -277,21 +277,21 @@ You can combine =:only-contents= and =:exclude-elements= to control how you tran You can use the property in the following way. -#+begin_example +#+begin_src org #+transclude: [[file:path/to/file.org]] :expand-links -#+end_example +#+end_src As an exanmple if you have the content of this source file like this: -#+begin_example -This is a sample file link to [[[[file:test2.org]]][Test 2 file]]. -#+end_example +#+begin_src org +This is a sample file link to [[file:test2.org]]. +#+end_src For this source file, you will get the following transclusion with the link expanded [fn:1] -#+begin_example -This is a sample file link to [[[file:/home/user/org/test2.org]]][[file:test2.or][[Test 2 file]]]]. -#+end_example +#+begin_src org +This is a sample file link to [[file:/home/user/org/test2.org]]. +#+end_src [fn:1] "Expanding" in Emacs means converting a relative file name to an absolute one. Info node `(elisp) File-Name-Expansion'