diff options
Diffstat (limited to 'dir_attach')
-rw-r--r-- | dir_attach/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dir_attach/__init__.py b/dir_attach/__init__.py index c19f6dd..930220c 100644 --- a/dir_attach/__init__.py +++ b/dir_attach/__init__.py @@ -68,6 +68,7 @@ def expand_dir_attach(content, dirname): # a whole content.replace to avoid to replace inside of paragraphs, etc. regexes = ( (r"^(.. \w+::) {dir_attach}(.*)$", fr"\1 {dest}\2"), + (r"^(.. _.*:) {dir_attach}(.*)$", fr"\1 {dest}\2"), (r"^( :\w+:) {dir_attach}(.*)$", fr"\1 {dest}\2"), ) |