Skip to content

Date formatting #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Apr 10, 2025
Merged

Date formatting #3

merged 20 commits into from
Apr 10, 2025

Conversation

eveliinahampus
Copy link
Collaborator

Formatting date to match standard date presentation used in Finland.

dd/mm/yyyy

- Debian slim image for faster processing
- Finds markdown files under subfolders
- Targets better to find correct CSS file

Problems
- Inherits font weight and casing 'incorrectly', requires inspection
  from the HTML file. Find correct HTML tag and address that in CSS.

Not checked
- How behaves with multiple pages
Detailed description:
md-to-pdf, a Puppeteer based approach
- WHY? Pandoc and  wkhtmlpdf didn't offer enough support for custom CSS.
Nuances in this approach?
- Puppeteer can be run on Ubuntu 22.04, but due security and sandboxing,
not in newer versions.
- SVG image encoded base64. Only format that seemed to print on PDF with
  this script.

NOTICE: Prior any changes, a troughout review of sourcecode is
necessary. Many behaviors were not documented.

References: https://github.com/simonhaenisch/md-to-pdf
@eveliinahampus eveliinahampus merged commit fb7276d into main Apr 10, 2025
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.

1 participant