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

Outline command should be idempotent #11

Open
andreoliwa opened this issue Mar 26, 2022 · 0 comments
Open

Outline command should be idempotent #11

andreoliwa opened this issue Mar 26, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@andreoliwa
Copy link
Owner

andreoliwa commented Mar 26, 2022

Problem

As a user converting old Markdown I want to run the outline command many times on the same file and always get the same output, so I don't need to care if the file is old or new, converted to outline or not.

Trying to convert to outline when the Markdown is already an outline should return the same results.

Possible solution

  1. Make the outline command idempotent.
  2. Detect if the line is already an outline and don't indent it again.
@andreoliwa andreoliwa added the enhancement New feature or request label Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant