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

Transpilation warning for invalid indent depth #25

Open
mp4096 opened this issue May 24, 2017 · 0 comments
Open

Transpilation warning for invalid indent depth #25

mp4096 opened this issue May 24, 2017 · 0 comments

Comments

@mp4096
Copy link
Owner

mp4096 commented May 24, 2017

This one originates from #16.

Idea: We want to allow only even indentation changes after a hashline. Examples:

% This is ok -- 2 ws indent change
# equation:
  1 + 1

% This is ok too -- 4 ws indent change
# itemize:
    * a
    * b
    * c

% This is ugly, but ok!
# itemize:
  * a
   * b
     * c

% This is not ok -- 1 ws indent change
# equation:
 1 + 1

% This is not ok -- 3 ws indent change
# itemize:
   * a
   * b
   * c

Actually, I'm not sure on this one. Unfortunately, there are many examples when the indent after the hashline must be arbitrary, e.g.:

% Here the user wants the numbers to be right-aligned in the source code
# bmatrix:
   2 \\
  23
@mp4096 mp4096 changed the title Transpilation error for invalid indent depth Transpilation warning for invalid indent depth Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant