Skip to content

Instantly share code, notes, and snippets.

@motet-a
Last active August 26, 2017 17:12
Show Gist options
  • Save motet-a/db904405dc7108159ce5dce11f01d399 to your computer and use it in GitHub Desktop.
Save motet-a/db904405dc7108159ce5dce11f01d399 to your computer and use it in GitHub Desktop.

Source:

a[^first]b[^second def]c[^third]

[^first]: first def
[^third]: third def

Actual:

a²b¹c³

1. first def
2. third def
3. second def

Expected:

a¹b²c³

1. first def
2. second def
3. third def
@vhf
Copy link

vhf commented Aug 26, 2017

a[^first]b[^second def]c[^third]

[^third]: third def
[^first]: first def

@artragis
Copy link

for expected result I would prefer

a²b¹c³

1. second def
2. first def
3. third def

Why?

because the rule I want to always fit with is "everything ordered and displayed following definition order".

In our case the [^second def] is in fact the first definition of the snipett

@motet-a
Copy link
Author

motet-a commented Aug 26, 2017

Source:

a[^first]b[^second def]c[^third]

[^third]: third def
[^first]: first def

Expected:

a³b²c¹

1. third def
2. second def
3. first def

@vhf
Copy link

vhf commented Aug 26, 2017

@artragis moi ça me va bien ouais

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment