sinaatalay / rendercv

The engine of the RenderCV App
http://rendercv.com
MIT License
2k stars 154 forks source link

Allow nested bullet points #177

Open amarvin opened 1 month ago

amarvin commented 1 month ago

Would it be possible to have nested bulleted lists? I often put sub-bullets in my work experience like:

MyJob

MyCompany

I tried to do this with rendercv using:

    experience:
      - company: MyCompany
        position: MyJob
        start_date: 2024-09
        highlights:
          - Project 1
            - Deliverable 1
            - Deliverable 2
          - Project 2
            - Challenge 1
            - Deliverable 3

but it renders as:

image

I also tried using markdown:

    experience:
      - company: MyCompany
        position: MyJob
        start_date: 2024-09
        highlights:
          - "Project 1
            - Deliverable 1
            - Deliverable 2"
          - "Project 2
            - Challenge 1
            - Deliverable 3"

but got the same render.

amarvin commented 1 month ago

Here's my workaround so far:

    experience:
      - company: MyCompany
        position: MyJob
        start_date: 2024-09
        highlights:
          - "Project 1
            \\begin{itemize}
              \\item Deliverable 1
              \\item Deliverable 2
            \\end{itemize}"
          - "Project 2
            \\begin{itemize}
              \\item Challenge 1
              \\item Deliverable 3
            \\end{itemize}"

which renders as:

image

Note that I needed extra backslashes to escape the backslash LaTeX commands (https://stackoverflow.com/questions/32991517/how-to-escape-colons-and-other-special-characters-in-a-yaml-string).

sinaatalay commented 1 month ago

Thank you, that's a good idea. We should implement this.

aaronk1 commented 4 days ago

Thanks, @amarvin . I want to do something similar with separate roles same company.