Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฆ MdBundle for Zotero

Bundle, analyze & export your PDF/MD attachments from Zotero

Zotero License Platform GitHub Downloads

English | Portuguรชs

About

MdBundle is a Zotero plugin that manages the relationship between your PDFs and their Markdown counterparts. It exports matched PDF/MD pairs, diagnoses your library's attachment health, generates MDs from PDFs, and selects cited items directly from Word documents.

The key feature is intelligent pairing: MdBundle only considers a PDF and MD as a pair when they share the same base filename (e.g., Smith et al 2024.pdf โ†” Smith et al 2024.md).

Why Markdown matters for research

Markdown versions of academic papers are essential for modern AI-assisted research workflows:

  • LLM context: Feed your papers as MD directly into ChatGPT, Claude, Gemini, or local models for summarization, Q&A, and literature review
  • RAG pipelines: Build Retrieval-Augmented Generation systems over your Zotero library using structured text
  • Semantic search: MD files are lightweight and easily indexed, enabling fast full-text search across your entire corpus
  • Interoperability: Works with Obsidian, Logseq, Notion, and other knowledge management tools
  • Version control: Plain text diffs cleanly in Git, unlike PDFs

MdBundle pairs naturally with tools like pdftollm for high-quality PDFโ†’MD conversion with OCR support, enabling a complete pipeline from Zotero to LLM-ready text.

Features

Feature Description
Export Export PDF/MD pairs to a folder (all, PDFs only, or MDs only)
Analyze Diagnostic report: items with/without PDF, with/without matching MD, suspicious small MDs
Generate Extract text from PDFs and create linked MD files automatically
Select from .docx Read a Word document and select all cited items in your library
OCR tagging Items with non-extractable PDFs are tagged needs-ocr for later processing

How it works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Selected Items โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  MdBundle Plugin  โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  Export Folder   โ”‚
โ”‚  (or .docx)     โ”‚     โ”‚                  โ”‚     โ”‚  PDF + MD pairs  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                               โ–ผ
                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                        โ”‚  Diagnostic &    โ”‚
                        โ”‚  MD Generation   โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                               โ–ผ
                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                        โ”‚  Tagged items    โ”‚
                        โ”‚  "needs-ocr"     โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Installation

  1. Download mdbundle.xpi from Releases
  2. In Zotero: Tools โ†’ Add-ons โ†’ โš™๏ธ โ†’ Install Add-on From File
  3. Select the .xpi file

Usage

Right-click menu (on selected items)

MdBundle...
  โ”œโ”€โ”€ Export All (PDF + MD)
  โ”œโ”€โ”€ Export PDFs only
  โ”œโ”€โ”€ Export MDs only
  โ”œโ”€โ”€ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  โ”œโ”€โ”€ Analyze items (diagnostic)
  โ”œโ”€โ”€ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  โ””โ”€โ”€ Generate missing MDs (PDFโ†’MD)

Tools menu

Tools โ†’ Select cited items from .docx...

Workflow example

# 1. Open your Word article (.docx)
Tools โ†’ "Select cited items from .docx..."
โ†’ Select your .docx file
โ†’ Items are automatically selected in Zotero

# 2. Analyze what you have
Right-click โ†’ MdBundle โ†’ Analyze items
โ†’ See which items are missing PDF or MD

# 3. Generate missing MDs
Right-click โ†’ MdBundle โ†’ Generate missing MDs
โ†’ MDs are created and linked; OCR-needed items are tagged

# 4. Export
Right-click โ†’ MdBundle โ†’ Export All
โ†’ Choose destination folder
โ†’ All PDF/MD pairs are copied there

Localization

MdBundle supports multiple languages:

Language Locale Language Locale
๐Ÿ‡บ๐Ÿ‡ธ English en-US ๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่ชž ja-JP
๐Ÿ‡ง๐Ÿ‡ท Portuguรชs pt-BR ๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด ko-KR
๐Ÿ‡ช๐Ÿ‡ธ Espaรฑol es-ES ๐Ÿ‡ท๐Ÿ‡บ ะ ัƒััะบะธะน ru-RU
๐Ÿ‡จ๐Ÿ‡ณ ไธญๆ–‡ zh-CN ๐Ÿ‡ต๐Ÿ‡ฑ Polski pl-PL
๐Ÿ‡ฎ๐Ÿ‡น Italiano it-IT ๐Ÿ‡น๐Ÿ‡ท Tรผrkรงe tr-TR
๐Ÿ‡ซ๐Ÿ‡ท Franรงais fr-FR ๐Ÿ‡ฉ๐Ÿ‡ช Deutsch de-DE

Zotero automatically selects the language based on your settings. Unsupported locales fall back to English.

About OCR

When MdBundle detects a PDF without extractable text (scanned/image-based):

  1. The item is tagged with needs-ocr
  2. You can filter by this tag later and process with your preferred OCR tool

Build

cd src
zip -r ../mdbundle.xpi .

Related Projects

Project Description
pdftollm High-quality PDFโ†’MD conversion with OCR support for LLM pipelines

Compatibility

Zotero Version Status
7.x โœ…
8.x โœ…
9.x โœ…

Portuguรชs

Sobre

MdBundle รฉ um plugin para Zotero que gerencia a relaรงรฃo entre seus PDFs e seus equivalentes em Markdown. Exporta pares PDF/MD, diagnostica a saรบde dos anexos da sua biblioteca, gera MDs a partir de PDFs e seleciona itens citados diretamente de documentos Word.

Por que Markdown importa para pesquisa

Versรตes em Markdown de artigos acadรชmicos sรฃo essenciais para fluxos de trabalho modernos com IA:

  • Contexto para LLMs: Alimente seus artigos como MD diretamente no ChatGPT, Claude, Gemini ou modelos locais para sumarizaรงรฃo, Q&A e revisรฃo de literatura
  • Pipelines RAG: Construa sistemas de Geraรงรฃo Aumentada por Recuperaรงรฃo sobre sua biblioteca Zotero
  • Busca semรขntica: Arquivos MD sรฃo leves e facilmente indexรกveis
  • Interoperabilidade: Funciona com Obsidian, Logseq, Notion e outras ferramentas de gestรฃo do conhecimento

MdBundle combina naturalmente com ferramentas como pdftollm para conversรฃo PDFโ†’MD de alta qualidade com suporte a OCR.

Funcionalidades

Funcionalidade Descriรงรฃo
Exportar Exporta pares PDF/MD para uma pasta (tudo, sรณ PDFs ou sรณ MDs)
Analisar Relatรณrio: itens com/sem PDF, com/sem MD correspondente, MDs suspeitos
Gerar Extrai texto de PDFs e cria arquivos MD vinculados automaticamente
Selecionar do .docx Lรช um documento Word e seleciona todos os itens citados na biblioteca
Tag OCR Itens com PDFs sem texto extraรญvel sรฃo marcados com needs-ocr

Instalaรงรฃo

  1. Baixe mdbundle.xpi da pรกgina de Releases
  2. No Zotero: Ferramentas โ†’ Complementos โ†’ โš™๏ธ โ†’ Instalar complemento a partir de arquivo
  3. Selecione o arquivo .xpi

Author

William Corrรชa Mendes

Diretor de Gestรฃo de TI โ€” IFMA ยท Coordenador do Observatรณrio de Egressos (SETEC/MEC) MSc. Engenharia Elรฉtrica / Ciรชncia da Computaรงรฃo โ€” UFMA ยท Doutorando โ€” Fucape Business School

Lattes | LinkedIn | GitHub | ORCID

Support the Project

If MdBundle is useful for your research, consider supporting its development:

License

MIT