hugo/parser
Bjørn Erik Pedersen 8e5044d7f5 Fix shortcode parser regression with quoted param values
This issue was introduced in `v0.102.0`.

In 223bf28004 we removed the byte source from the parsed page result, which
meant we had to preserve exact positioning for all elements. This introduced some new `TypeIgnore` tokens
which we, wrongly, assumed didn't matter where we put in the result slice (they should be ignored anyway).

But it seems that this broke the logic where we determine if it's positional or named params in the case
where the paramater value contains escaped quoutes.

This commit makes sure that these ignore tokens (the back slashes) are never sent back to the client, which is how it was before `v0.102.0`.

This commit also fixes some lost error information in that same commit.

Fixes #10236
2022-09-01 12:13:23 +02:00
..
metadecoders Improve SASS errors 2022-05-15 20:25:25 +02:00
pageparser Fix shortcode parser regression with quoted param values 2022-09-01 12:13:23 +02:00
frontmatter.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
frontmatter_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
lowercase_camel_json.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00