hugo/hugolib
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
..
assets/images
filesystems basefs: add noBuildLock flag 2022-05-24 13:57:23 +02:00
paths Fix relURL with leading slash when baseURL includes a subdirectory 2022-06-13 11:40:25 +02:00
testdata
testsite
404_test.go
alias.go
alias_test.go
breaking_changes_test.go
cascade_test.go errors: Misc improvements 2022-05-14 13:40:56 +02:00
codeowners.go
collections.go Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00
collections_test.go
config.go Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
config_test.go helpers: Fix panic with invalid defaultMarkdownHandler 2022-06-04 17:47:20 +02:00
configdir_test.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
content_factory.go Add clock cli flag 2022-05-08 16:56:26 +02:00
content_factory_test.go
content_map.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
content_map_page.go Fix panic with markdownify/RenderString with shortcode on Page with no content file 2022-06-01 12:04:55 +02:00
content_map_test.go Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself 2022-05-28 10:56:54 +02:00
content_render_hooks_test.go Make .RenderString render shortcodes 2022-05-30 11:32:55 +02:00
datafiles_test.go Replace all usage of CopyOnWriteFs with OverlayFs 2022-04-10 13:49:31 +02:00
dates_test.go Fix raw TOML dates in where/eq 2022-06-07 13:02:58 +02:00
disableKinds_test.go
embedded_shortcodes_test.go
embedded_templates_test.go
fileInfo.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
fileInfo_test.go
gitinfo.go
hugo_modules_test.go Replace all usage of CopyOnWriteFs with OverlayFs 2022-04-10 13:49:31 +02:00
hugo_sites.go postcss: Fix import error handling 2022-05-15 20:25:25 +02:00
hugo_sites_build.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
hugo_sites_build_errors_test.go errors: Misc improvements 2022-05-14 13:40:56 +02:00
hugo_sites_build_test.go Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
hugo_sites_multihost_test.go
hugo_sites_rebuild_test.go
hugo_smoke_test.go Make the baseline benchmark's test files stable 2022-06-30 12:36:55 +02:00
image_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
integrationtest_builder.go helpers: Fix panic with invalid defaultMarkdownHandler 2022-06-04 17:47:20 +02:00
language_content_dir_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
language_test.go
menu_test.go Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself 2022-05-28 10:56:54 +02:00
minify_publisher_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
mount_filters_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
multilingual.go
page.go Fix shortcode parser regression with quoted param values 2022-09-01 12:13:23 +02:00
page__common.go Fix panic with markdownify/RenderString with shortcode on Page with no content file 2022-06-01 12:04:55 +02:00
page__content.go parser/pageparser: Don't store the byte slices 2022-07-09 16:03:11 +02:00
page__data.go
page__menus.go
page__meta.go Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
page__new.go Fix panic with markdownify/RenderString with shortcode on Page with no content file 2022-06-01 12:04:55 +02:00
page__output.go
page__paginator.go
page__paths.go
page__per_output.go deps: Udpate to github.com/alecthomas/chroma/v2 2022-06-14 14:08:40 +02:00
page__position.go
page__ref.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
page__tree.go Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself 2022-05-28 10:56:54 +02:00
page_kinds.go
page_permalink_test.go
page_test.go Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
page_unwrap.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
page_unwrap_test.go
pagebundler_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
pagecollections.go
pagecollections_test.go
pages_capture.go
pages_capture_test.go
pages_language_merge_test.go tpl/lang: Handle nil values in lang.Merge 2022-04-23 22:22:50 +02:00
pages_process.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
pages_test.go
paginator_test.go
permalinker.go
prune_resources.go
renderstring_test.go Fix panic with markdownify/RenderString with shortcode on Page with no content file 2022-06-01 12:04:55 +02:00
resource_chain_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
robotstxt_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
rss_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
securitypolicies_test.go
shortcode.go Fix shortcode parser regression with quoted param values 2022-09-01 12:13:23 +02:00
shortcode_page.go
shortcode_test.go Fix shortcode parser regression with quoted param values 2022-09-01 12:13:23 +02:00
site.go Add clock cli flag 2022-05-08 16:56:26 +02:00
site_benchmark_new_test.go
site_output.go
site_output_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
site_render.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
site_sections.go
site_sections_test.go
site_stats_test.go
site_test.go Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
site_url_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
siteJSONEncode_test.go
sitemap_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
taxonomy.go Make string sorting (e.g. ByTitle, ByLinkTitle and ByParam) language aware 2022-04-12 13:24:16 +02:00
taxonomy_test.go
template_test.go
testhelpers_test.go deps: Udpate to github.com/alecthomas/chroma/v2 2022-06-14 14:08:40 +02:00
translations.go