-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
In PR #131, it has made some changes to the tagged text that aren't good. Here's the diff from my unit level test comparing the old and the new:
CHECKING BUILT TAGS AGAINST EXPECTED TAGS
diff tests/norm-rule/expected/test-norm-tags.json build/test-norm-tags.json && echo "diff PASSED" || (echo "diff FAILED"; exit 1)
5,6c5,6
< "norm:clarification-without-text": "isn't clear enough.",
< "norm:clarification-with-text": "also isn't clear enough.",
---
> "norm:clarification-without-text": "isn’t clear enough.",
> "norm:clarification-with-text": "also isn’t clear enough.",
15,16c15,16
< "norm:bold": "ABC is a network - Bold is removed by tags backend so I don't see it",
< "norm:italics": "Let's have fun today - Italics is removed by tags backend so I don't see it",
---
> "norm:bold": "*ABC* is a n*et*work - Bold is removed by tags backend so I don’t see it",
> "norm:italics": "Let’s have _fun_ to_day_ - Italics is removed by tags backend so I don’t see it",
19c19
< "norm:inline-underline": "ABC [.underline]#inside tag# GHI",
---
> "norm:inline-underline": "ABC inside tag GHI",
26,32c26,32
< "norm:macro_call": "200 {ge} 100",
< "norm:hyperlink1": "ABC <<norm:superscript>> DEF",
< "norm:hyperlink2": "DEF <<norm:superscript,custom text>> GHI",
< "norm:hyperlink3": "ABC <<non-norm-anchor>> DEF",
< "norm:hyperlink4": "DEF <<non-norm-anchor,custom text>> GHI",
< "norm:hyperlink5": "GHI <<norm:superscript>> and <<norm:subscript>> JKL",
< "norm:hyperlink6": "JKL <<norm:superscript ,hello>> and <<norm:subscript, goodbye>> MNO",
---
> "norm:macro_call": "200 ≥ 100",
> "norm:hyperlink1": "ABC DEF",
> "norm:hyperlink2": "DEF custom text GHI",
> "norm:hyperlink3": "ABC DEF",
> "norm:hyperlink4": "DEF custom text GHI",
> "norm:hyperlink5": "GHI and JKL",
> "norm:hyperlink6": "JKL hello and goodbye MNO",
diff FAILED
In summary, here's what I see that is not good:
- In my test.adoc, I have "[#norm:bold]#ABC is a network" but it gets converted to "ABC is a network" (lost the double **). Same problem exists for double __.
- [.underline] is removed
- Hyperlinks such as <> (actually <<foo>>) are removed completely
Overall, this is a net negative so we should probably back it out (yes, I prematurely merged the PR).
Can you figure out how to just replace macros and not have all these other changes?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels