Skip to content

Commit

Permalink
fix: #944
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Jan 9, 2025
1 parent 772c4f6 commit 153d5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lint/rst.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
//
// reCodeBlock is used to convert Sphinx-style code directives to the regular
// `::` for rst2html, including the use of runtime options (e.g., :caption:).
var reCodeBlock = regexp.MustCompile(`.. (?:raw|code(?:-block)?):: (?:[\w-]+)(?:\s+:\w+: .+)*`)
var reCodeBlock = regexp.MustCompile(`\.\. (?:raw|code(?:-block)?):: *(?:[\w-]+)?(?:\s+:\w+:.*)*`)

// We replace custom directives with `.. code::`.
//
Expand Down

0 comments on commit 153d5f6

Please sign in to comment.