Skip to content

Support tight lists #31

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. changed the title [-]Support non loose lists[/-] [+]Support tight lists[/+] on Mar 19, 2018
  2. 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.

  3. 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?

  4. 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.

  5. 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.

  6. 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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions