Skip to content

Adds support for divs#7

Open
GuillaumeAllain wants to merge 7 commits into
aspeddro:mainfrom
GuillaumeAllain:main
Open

Adds support for divs#7
GuillaumeAllain wants to merge 7 commits into
aspeddro:mainfrom
GuillaumeAllain:main

Conversation

@GuillaumeAllain
Copy link
Copy Markdown

Will print the name and the caption if present on the same line.

This adds cmp completion for these cases from pandoc-crossref

<div id="fig:figureRef" class="subfigures">

![a](image1.png){#fig:figureRefA}

![b](image2.png){#fig:figureRefB}

Figure 1: Caption of figure. a — subfigure 1 caption, b — subfigure 2
caption

</div>

::::: {#fig:figureComp}
![a](image1.png){#fig:figureCompA}
![b](image2.png){#fig:figureCompB}

Caption
:::::


\`\`\`{#lst:code .haskell caption="Listing caption"}
main :: IO ()
main = putStrLn "Hello World!"
\`\`\`


This PR also catches an error when value is empty inside vim.trim. It used to happened with these fenced divs for example. If not in this list of divs, no error will be raised but no cmp suggestion as well.

@aspeddro
Copy link
Copy Markdown
Owner

Sorry for the delay, I'm leaving some comments before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants