hugo/hugolib
Bjørn Erik Pedersen 53a6210d82 markup/goldmark/codeblocks: Fix slice bounds out of range
For the Position in code blocks we try to match the .Inner with the original source. This isn't always possible.

This commits avoids panics in these situations.

Fixes #9627
2022-03-08 21:50:21 +01:00
..
assets/images
filesystems Allow rendering static files to disk and dynamic to memory in server mode 2022-03-08 19:27:54 +01:00
paths
testdata
testsite Add support for CODEOWNERS 2022-02-23 22:43:19 +01:00
404_test.go
alias.go
alias_test.go
breaking_changes_test.go
cascade_test.go
case_insensitive_test.go
codeowners.go Rename Codeowners() to CodeOwners() 2022-02-27 19:40:07 +01:00
collections.go
collections_test.go
config.go
config_test.go
configdir_test.go
content_factory.go
content_factory_test.go
content_map.go
content_map_page.go Add support for CODEOWNERS 2022-02-23 22:43:19 +01:00
content_map_test.go
content_render_hooks_test.go Add Markdown diagrams and render hooks for code blocks 2022-02-24 18:59:50 +01:00
datafiles_test.go
dates_test.go
disableKinds_test.go
embedded_shortcodes_test.go
embedded_templates_test.go
fileInfo.go
fileInfo_test.go
gitinfo.go
hugo_modules_test.go
hugo_sites.go Rename Codeowners() to CodeOwners() 2022-02-27 19:40:07 +01:00
hugo_sites_build.go
hugo_sites_build_errors_test.go
hugo_sites_build_test.go
hugo_sites_multihost_test.go
hugo_sites_rebuild_test.go
hugo_smoke_test.go
image_test.go
integrationtest_builder.go Remove the trailing new line in .Code 2022-02-26 21:54:36 +01:00
language_content_dir_test.go Add Markdown diagrams and render hooks for code blocks 2022-02-24 18:59:50 +01:00
language_test.go
menu_test.go
minify_publisher_test.go
mount_filters_test.go
multilingual.go
page.go markup/goldmark/codeblocks: Fix slice bounds out of range 2022-03-08 21:50:21 +01:00
page__common.go Add support for CODEOWNERS 2022-02-23 22:43:19 +01:00
page__content.go
page__data.go
page__menus.go
page__meta.go
page__new.go Add Markdown diagrams and render hooks for code blocks 2022-02-24 18:59:50 +01:00
page__output.go
page__paginator.go
page__paths.go
page__per_output.go CodeblockContext method renames 2022-02-27 17:59:36 +01:00
page__position.go
page__ref.go
page__tree.go
page_kinds.go
page_permalink_test.go
page_test.go Rename Codeowners() to CodeOwners() 2022-02-27 19:40:07 +01:00
page_unwrap.go
page_unwrap_test.go
pagebundler_test.go Add Markdown diagrams and render hooks for code blocks 2022-02-24 18:59:50 +01:00
pagecollections.go
pagecollections_test.go
pages_capture.go
pages_capture_test.go
pages_language_merge_test.go
pages_process.go Allow rendering static files to disk and dynamic to memory in server mode 2022-03-08 19:27:54 +01:00
pages_test.go
paginator_test.go
permalinker.go
prune_resources.go
resource_chain_test.go
robotstxt_test.go
rss_test.go
securitypolicies_test.go
shortcode.go
shortcode_page.go
shortcode_test.go
site.go Allow rendering static files to disk and dynamic to memory in server mode 2022-03-08 19:27:54 +01:00
site_benchmark_new_test.go
site_output.go
site_output_test.go
site_render.go
site_sections.go Add Markdown diagrams and render hooks for code blocks 2022-02-24 18:59:50 +01:00
site_sections_test.go
site_stats_test.go
site_test.go
site_url_test.go
siteJSONEncode_test.go
sitemap_test.go
taxonomy.go
taxonomy_test.go
template_test.go
testhelpers_test.go
translations.go