Skip to content

Support tight lists #31

Closed
Closed

Description

@SuperSandro2000

MarkText should support tight lists. Currently all lists are converted to loose ones.

* Foo
* Bar

After:
* Foo

* Bar

As discussed here: #30 (comment)

Activity

  1. added
    🦄 feature request
    🦁 need discuss
    on Mar 19, 2018
  2. changed the title [-]Support non loose lists[/-] [+]Support tight lists[/+] on Mar 19, 2018
  3. SuperSandro2000 commented on Mar 19, 2018

    @SuperSandro2000
    ContributorAuthor

    I would categories this issue as quite severe as it is the last one that stops me from using marktext. I don't really care if it has advanced features. I just want to render my GitHub readme similar to how it looks later on the web offline.

  4. Jocs commented on Mar 19, 2018

    @Jocs
    Member

    @SuperSandro2000 Do you have any ideas on how to distinguish loose list and tight list when you input bullet or order list?

  5. SuperSandro2000 commented on Mar 19, 2018

    @SuperSandro2000
    ContributorAuthor

    Your could distinguish loose lists if you look for two line breaks (keeping the three types in mind and ignoring spaces and tabs) without a list indicator (* or -) between them.
    Second idea: just stop one list after a blank line and start a new one.

  6. Jocs commented on Mar 19, 2018

    @Jocs
    Member

    @SuperSandro2000 Yes, I know how to distinguish loose and tight list when import markdown, I mean how to distinguish between them when you write with Mark Text, There is one solution, I add a user preference file, people can select whether to use loose list or tight list. when import markdown, I will not convert loose list to tight list or convert tight list to loose list.

    This issue also has a new feature user preference file, So it will take me some time to finish it, stay tuned.

  7. SuperSandro2000 commented on Mar 19, 2018

    @SuperSandro2000
    ContributorAuthor

    My bad. Missunderstud you.

    A setting would be ideal. You could put the theme setting in that file too.

    As a quick fix you could implement that you don't convert them. This is my main issue right now as it always changes my current list.

  8. added
    🐜 in progress
    🐝 resolved/fixed but not released
    and removed
    🦁 need discuss
    🐜 in progress
    on Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐝 resolved/fixed but not released🦄 feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions