Skip to content
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

add multi-level nested lists support #3

Closed
curiouslychase opened this issue Feb 1, 2017 · 6 comments
Closed

add multi-level nested lists support #3

curiouslychase opened this issue Feb 1, 2017 · 6 comments
Assignees

Comments

@curiouslychase
Copy link
Owner

No description provided.

@kaushalmodi
Copy link

To add to this, here is a MWE to test this support:

  • And unordered list begins with + or -.
  • Two empty lines ends a list.

Here is the spec.

** Unordered Lists
Begin a list with a =+= or =-= sign. Items belonging to the same list must have the same indentation on the first line. To add sub-lists, increase indentation of that list item's =+= or =-= sign as shown in the below example.

Two consecutive blank lines after a list ends the list. Below, the list with =baz1/= and =baz2/= will be in a separate =<ul>= wrapper in HTML.
#+BEGIN_SRC text
- /baz1
- /baz2


+ /foo1
+ /foo2
+ /foo3
  - bar1
  - bar2
#+END_SRC
- /baz1
- /baz2


+ /foo1
+ /foo2
+ /foo3
  - bar1
  - bar2

Above snippet is from my large org syntax examples file (so you see the section numbers below). This is what org exports to html:
image

@curiouslychase curiouslychase self-assigned this Apr 12, 2017
@humanfactors
Copy link

Has there been any update on this - it would be incredibly useful.

@kaushalmodi
Copy link

kaushalmodi commented Feb 13, 2018

@humanfactors

Wow, it's been a year since this :)

I then ventured into developing the ox-hugo package, an Org exporter that exports to Hugo front-matter + Markdown (and HTML where needed). I live and breathe in Emacs + Org environment, so getting all of the Org syntax work was very important to port my existing Org documents, which can be very complicated (Hugo rendered version of that).

@jrmiller82
Copy link

I'd love an update too. This is pretty important functionality for an org parser.

@curiouslychase
Copy link
Owner Author

Sorry I kinda went dark. I'm almost done with the refactor for goorgeous to handle how many ever deeply nested lists you may have. Here's a snapshot generated from a deeply nested list.

@curiouslychase
Copy link
Owner Author

I had a branch I was getting ready to PR into Hugo, but it looks like @niklasfasching PR'ed a new org parser, so I'm closing all the issues here, deprecating and archiving goorgeous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants