hugo/parser/pageparser
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
..
doc.go
item.go parser/pageparser: Don't store the byte slices 2022-07-09 16:03:11 +02:00
item_test.go parser/pageparser: Don't store the byte slices 2022-07-09 16:03:11 +02:00
itemtype_string.go Improve shortcode indentation handling 2022-05-30 11:32:55 +02:00
pagelexer.go Fix shortcode parser regression with quoted param values 2022-09-01 12:13:23 +02:00
pagelexer_intro.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
pagelexer_shortcode.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
pagelexer_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
pageparser.go parser/pageparser: Don't store the byte slices 2022-07-09 16:03:11 +02:00
pageparser_intro_test.go parser/pageparser: Don't store the byte slices 2022-07-09 16:03:11 +02:00
pageparser_main_test.go parser/pageparser: Don't store the byte slices 2022-07-09 16:03:11 +02:00
pageparser_shortcode_test.go Fix shortcode parser regression with quoted param values 2022-09-01 12:13:23 +02:00
pageparser_test.go parser/pageparser: Don't store the byte slices 2022-07-09 16:03:11 +02:00