mmarusiak_pdf-emojis-plugin/package.json
Marcel f63b15d57e fix: use U+2060 Word Joiner to prevent Obsidian PDF from stripping heading numbers
The previous span-only approach failed because Obsidian's PDF export strips
leading digits from heading text via pattern matching (not CSS), happening after
post-processors run. Inserting U+2060 (Word Joiner, zero-width invisible char)
before the digit breaks the regex match so the number is preserved.

Also added @media print CSS rules and ::first-letter overrides as defense-in-depth.
2026-05-18 21:25:49 +02:00

27 lines
729 B
JSON

{
"name": "pdf-emojis",
"version": "0.1.7",
"description": "Helps you exporting all your emojis to pdf (even those in headings)!",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"builtin-modules": "3.3.0",
"esbuild": "0.17.3",
"obsidian": "latest",
"tslib": "2.4.0",
"typescript": "4.7.4"
},
"dependencies": {
"emoji-regex": "^10.4.0"
}
}