I have a program that require all keywords to be in a single paragraph, most of the time, separated by commas

For example:

I have those terms

1-Term
1.1-Term
2-Term
3-Term
4-Term

That i collected and organized into groups and subgroups with Titles and subtitles

Title

  • 1-Term

  • 1.1-Term

  • 2-Term

    • Sub-Title
      • 3-Term
      • 4-Term

But then i want to turn them into:

1-Term, 1.1-Term, 2-Term, 3-Term, 4-Term 
 

Removing certain marked words(Titles and sub-Titles), any Empty/Blank space, and Line breaks, while adding the commas between The Terms. I want to keep certain dashes “-”(like in words )

1-Term,1.1 -Term,2-Term,3-Term,4-Term

  • Cactus_HeadOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    18 hours ago

    Why do the prefix numbers change between examples?

    My bad, i fixed it

    I want to show that the two terms are related e,g Star and Jedi by grouping them together

    Franchises

    Stars wars
    Jedi

    Transformers


    Also i am not able to add line breaks between bullet points in markdown. so instead i get this

    Franchises

    • Stars wars

    • Jedi

    • Transformers

    So i cant show the grouping thing in lemmy here. I would have also liked The list i make to be markdown compatible but i guess that separate issue.