Re: How does =org-md-item= produce the correct indentation for nested lists?

2024-04-13 Thread Rohit Patnaik
Hello, Yes, that clarifies things quite a bit. I thought that the contents of the list item only included that specific item, when in reality it includes the item and all sub-lists. Thanks, Rohit

Re: How does =org-md-item= produce the correct indentation for nested lists?

2024-04-13 Thread Ihor Radchenko
"Rohit Patnaik" writes: > #+BEGIN_SRC elisp > (concat bullet > ... > (and contents >(org-trim (replace-regexp-in-string "^" "" contents > #+END_SRC > > and I'm wondering why it's adding indentation in front of the bullet. > Naively, I > would expect the result of this

How does =org-md-item= produce the correct indentation for nested lists?

2024-04-12 Thread Rohit Patnaik
Hello, I was looking at the implementation for =org-md-item=, in ox-md.el, and I'm wondering how indentation logic for nested lists works. Specifically, I was looking at the following code: #+BEGIN_SRC elisp (concat bullet (make-string (- 4 (length bullet)) ? ) (pcase