Skip to content

Net Parser v0.4.0-alpha

Choose a tag to compare

@worthant worthant released this 11 Mar 17:46
· 6 commits to master since this release

This release adds PDF generation capabilities to the parser toolkit with a focus on dark theme aesthetics.

New Features

  • PDF Converters: New converters for generating PDFs:
    • md-to-pdf.ts: Convert Markdown files to PDF
  • Dark Theme: Professionally styled dark theme for PDF output
    • Dark background with light text for better readability
    • Aesthetic color scheme for headings and correct answers
    • Full-page dark background without white margins
  • Custom Styling: Support for custom CSS to style the PDF output

PDF Features

  • Beautiful typography with proper spacing for readability
  • Optimized image display in dark theme
  • Highlighted correct answers
  • Compact layout for efficient studying

Usage

# Convert Markdown to PDF
node dist/converters/md-to-pdf.js input.md output.pdf [cssPath] [imageBasePath]

What i did for creating tests in the docs folder

  • convert .txt with .jpg|.JPG to .md
# convert 3 tests to .md
node dist/converters/txt-to-md.js data/tests/cs1-fixed.txt docs/cs1.md data/t
ests/testsCS/test1/pics
node dist/converters/txt-to-md.js data/tests/cs2-fixed.txt docs/cs2.md data/t
ests/testsCS/test2/pics
node dist/converters/txt-to-md.js data/tests/cs3-fixed.txt docs/cs3.md data/t
ests/testsCS/test3/pics
  • convert .md to .pdf
node dist/converters/md-to-pdf.js docs/cs1.md docs/cs1.pdf
node dist/converters/md-to-pdf.js docs/cs2.md docs/cs2.pdf
node dist/converters/md-to-pdf.js docs/cs3.md docs/cs3.pdf

Dependencies

This release requires the md-to-pdf package (v5.2.4+) for PDF generation.

Roadmap Progress

  • .fdb -> .txt converter
  • .txt encoding fixer utility
  • .fdb -> .md with image support
  • .md -> .pdf converter with dark theme
  • .txt -> .pdf direct converter (coming in later patches)
  • .fdb -> .json
  • integrate with test solver utility
  • test everything thoroughly
  • unified cli (v1.0.0)