Skip to content

Commit 2bbf123

Browse files
authored
Merge pull request #1028 from sphinx-contrib/support-inlined-images-in-v2-editor
translator: support inlined images in v2 editor
2 parents f1bb347 + 14a8b91 commit 2bbf123

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sphinxcontrib/confluencebuilder/storage/translator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,8 @@ def _visit_image(self, node, opts):
18531853
attribs['ac:align'] = alignment
18541854
if alignment == 'right':
18551855
attribs['ac:style'] = 'float: right;'
1856+
elif self.v2:
1857+
attribs['ac:inline'] = 'true'
18561858

18571859
if 'alt' in node:
18581860
alt = node['alt']

tests/validation-sets/restructuredtext/images.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Images
99

1010
Limitations using the Fabric (``v2``) editor:
1111

12-
- Images cannot be inlined (`CONFCLOUD-68501`_).
1312
- SVGs may not render properly (`CONFCLOUD-1762`_).
1413

1514
reStructuredText defines a series of `image-based directives`_. Example markup

0 commit comments

Comments
 (0)