OliverBalfour / obsidian-pandoc

Pandoc document export plugin for Obsidian (https://obsidian.md)
MIT License
719 stars 60 forks source link

An unnecessary `Copy` is added to code blocks in Pandoc markdown export #150

Open pmagwene opened 2 years ago

pmagwene commented 2 years ago

The following Obisidian markdown:

Here's a code block:
```python
print("hello world")

Gets converted to the following Pandoc markdown. Note the addition of the unwanted word `Copy` in the Pandoc code block:

Here\'s a code block:

print("hello world")
Copy


Also, is there a reason why the single quote character in `here's` is getting escaped?
lukenormile commented 1 year ago

I am also having this issue.

6StringSam commented 1 year ago

Any resolution to this issue?

r-jm commented 1 year ago

I was able to resolve this issue for myself. My markdown had the triple backtick code blocks like yours and when I used the Pandoc plugin to convert to DOCX, it generated the word "Copy" in monospace at the bottom of each code block.