Re: nested blocks in org

2024-05-13 Thread Ihor Radchenko
Ihor Radchenko writes: > mahmood sheikh writes: > >> with the given minimal example: >> ``` >> #+begin_parent >> #+begin_child >> #+end_child >> #+end_parent >> ``` >> the code >> ```lisp >> (org-block-map (lambda () (message "elem: %s" (org-element-at-point >> ``` >> goes through only the

Re: nested blocks in org

2024-03-06 Thread Ihor Radchenko
mahmood sheikh writes: > with the given minimal example: > ``` > #+begin_parent > #+begin_child > #+end_child > #+end_parent > ``` > the code > ```lisp > (org-block-map (lambda () (message "elem: %s" (org-element-at-point > ``` > goes through only the parent element and doesnt run the lambda

Re: nested blocks in org

2024-03-05 Thread mahmood sheikh
cognize the code block. > > So ... > > > can you point me in the right direction of getting org mode to recognize > > nested blocks, > > Org already recognizes nested blocks using Org element parser. See > https://orgmode.org/worg/dev/org-element-api.html > >

Re: nested blocks in org

2024-02-17 Thread Ihor Radchenko
he right direction of getting org mode to recognize > nested blocks, Org already recognizes nested blocks using Org element parser. See https://orgmode.org/worg/dev/org-element-api.html > ... like code highlighting for src blocks that are within > another special block? See https:/

Re: nested blocks in org

2024-02-17 Thread Ihor Radchenko
mahmood sheikh writes: > can you point me in the right direction of getting org mode to recognize > nested blocks, like code highlighting for src blocks that are within > another special block? May you please give an example of what you have in mind? -- Ihor Radchenko // yantar92, Org mode

nested blocks in org

2024-02-15 Thread mahmood sheikh
can you point me in the right direction of getting org mode to recognize nested blocks, like code highlighting for src blocks that are within another special block? and getting org-element-map to iterate through both a parent and its child blocks all the same? could modifying `org-block-regexp` to