Coder Social home page Coder Social logo

Comments (2)

curbengh avatar curbengh commented on June 29, 2024 3

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,
1

<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,
2

also no caption with image + code block
3

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,

  1. Through hexo's _config.yml:
pandoc:
  extensions:
    - '-implicit_figures'
  1. Add a backslash and a space after image embed:
![alt text](https://postimgs.org/img/logo.png)\ 

from hexo-renderer-pandoc.

siaimes avatar siaimes commented on June 29, 2024

Ok, I know what to do. Thank you guys for answering my questions, thank you very much.

from hexo-renderer-pandoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.