Skip to content

Code block snippet lines render blank code block, when it's just the first line  #2361

@shaedrich

Description

@shaedrich

Description

When I embed a snippet in a code snippet, restricting the lines to :1:1, the code block is rendered empty. This can temporarily be fixed by writing ::1 (which should be equivalent), so it's not urgent or anything, but I thought, you might want to fix that.

Minimal Reproduction

  1. Create the following code block:
--8<-- "some-code-snippet-file-path.pony:1:1"
  1. Build your site and check the result for the code block

Version(s) & System Info

  • Operating System: ¯\_(ツ)_/¯
  • Python Version: 3.8
  • Package Version: 10.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: confirmedConfirmed bug report or approved feature request.T: bugBug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions