在Bitbucket wiki页面中调整图片大小

18

我试图调整维基页面中的图片大小,但没有成功:图片始终以页面宽度的100%呈现。

我尝试使用reStructuredText:

.. image:: image.jpeg
   :height: 100px
   :width: 200px
   :scale: 50 %
   :alt: alternate text
(and different combinations, ignoring some lines).
Then I also tried.
![](image.jpeg =250x)

但是,这并不会改变所呈现的图像的大小。

有什么想法吗?


10
目前BitBucket不支持图像大小调整,可以查看此开放问题https://bitbucket.org/site/master/issues/12877/markdown-support-for-display-of-readmemd。 - Lorenzo Addazi
谢谢@LorenzoAddazi!我以为只有我这样。 - gal007
1个回答

11

Bitbucket Server 7.5 支持在 Markdown 中定义图片大小。

[...]

支持的语法是在图片的 Markdown 后面紧跟花括号内以 "key=value" 的形式指定 height 和/或 width,例如:

![alt text for the image](image-file.png){width=50%}
![alt text for the image](image-file.png){height=50 width=60}
![alt text for the image](image-file.png){height=100}
![alt text for the image](image-file.png){width=200px}

更多信息请参见:https://jira.atlassian.com/browse/BSERV-7426


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接