Comments (2)
My summary of the issue:
when having these lines (a code block immediately followed by image embed) in a post.md, the rendered result includes undesired caption,
<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">code block</span><br></pre></td></tr></table></figure>
<figure>
<img src="https://postimgs.org/img/logo.png" alt="" /><figcaption>another thing</figcaption>
</figure>
but no caption when code block + image + code block,
also no caption with image + code block
I'm using v0.3.0 with pandoc 2.7.3
It seems to be an intended feature of pandoc. There are two ways to disable the caption,
- Through hexo's _config.yml:
pandoc:
extensions:
- '-implicit_figures'
- Add a backslash and a space after image embed:
![alt text](https://postimgs.org/img/logo.png)\
from hexo-renderer-pandoc.
Ok, I know what to do. Thank you guys for answering my questions, thank you very much.
from hexo-renderer-pandoc.
Related Issues (20)
- 关于 \newcommand 的问题 HOT 1
- Is it possible to add a link to header tag as what hexo-renderer-marked did? HOT 2
- 嵌套的tag渲染错误 HOT 4
- Is it possible to render external package? HOT 1
- Why it's <embed> instead of <img> tag? HOT 5
- The task list or todo list cannot be rendered correctly HOT 2
- 关于新版本pandoc中citeproc模块的处理 HOT 10
- about env of pandoc HOT 3
- 多级列表转换异常 HOT 3
- '\oiint' could not show HOT 2
- Lua-filter support HOT 1
- How to preserve tabs in code blocks? HOT 8
- 📢 This repo has been transfered to hexojs organization HOT 8
- `hexo-renderer-pandoc` with `hexo-generator-feed` produces HTML generation errors | `hexo-renderer-pandoc` 搭配 `hexo-generator-feed` 会出现 HTML 生成错误 HOT 2
- Can I set the resource root path? HOT 1
- 回车换行不起作用 HOT 3
- New interface to specify arguments to pandoc
- Unexpected Changes in Article Headerlink and Missing Headerlink Icon HOT 7
- Error handling tag id assignment through pandoc syntax HOT 2
- How to escape dollar signs? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-renderer-pandoc.