frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Markdown-to-Book – Convert Markdown to KDP Ready PDFs and EPUBs

https://github.com/vpuna/markdown-to-book
3•vpuna•8h ago
Author here. I'm a software engineer who started writing hard science fiction on the side. I built this tool because I wanted to write in plain Markdown and go straight to Amazon KDP without touching Word, InDesign, or Vellum.

The workflow: I write stories in .md files, one heading per chapter, --- for scene breaks. When I'm ready to publish, I run one command and get a paperback PDF, hardcover PDF, and Kindle EPUB with correct margins, typography, and scene breaks. The tool wraps Pandoc and XeLaTeX with a custom LaTeX template and a Lua filter that handles the scene break conversion. Commander.js is the only Node dependency.

I used this to publish my first novelette, a hard sci-fi story called "The Pull" about an astrophysicist mapping the Zone of Avoidance behind the Milky Way. The science in the story is grounded in real astrophysics (the Great Attractor, large scale cosmic flows, the Zone of Avoidance). I also built an author website at 'alanvoss.me' with Next.js and Payload CMS, deployed as a static site on Vercel, where you can read the first chapter and see the characters.

On AI use and Graphics: The story concept and science are mine. I used Claude Opus 4.6 to help with some character dialogue and for grammar and spelling checks. Character portraits on the website were generated with Midjourney and OpenAI image models. Book covers were made in Canva.

The tool itself is simple (~200 lines of JS), but it solved a real problem for me. The KDP margin requirements are fiddly, especially the difference between paperback and hardcover inner margins, and getting scene breaks to render correctly in both LaTeX and EPUB needed the Lua filter approach. Hopefully useful to other developers who write.

Please let me know if you have any questions about the tool, the publishing process, or KDP in general.

Comments

dhruv3006•5h ago
This is a good application !

Something I made on markdown : https://voiden.md

dufbugderopa•1h ago
I am an engineer too, and have written a hard science fiction Novel: https://www.amazon.com/dp/B0GFTDY4ZL

Given that there are so few of us writing hard sci-fi, I would like to read your novelette. Where is it available?

vpuna•26m ago
Hey, thanks! mine is at https://www.amazon.com/dp/B0GQ8B1SN7 The Kindle book is free right now.

Making music on the TI graphing calculator

https://cdm.link/making-music-on-the-ti-82/
1•harmoni-pet•55s ago•0 comments

The Weight of AI on Engineers

https://quii.dev/The_weight_of_AI_on_engineers
1•quii•2m ago•0 comments

Show HN: VaultNote – Local-first encrypted note-taking in the browser

https://vaultnote.saposs.com/
1•powerwild•3m ago•0 comments

BLM Acquires Inholding in Colorado's Dominguez-Escalante NCA

https://coloradosun.com/2026/03/06/blm-acquires-escalante-ranch/
1•mooreds•4m ago•0 comments

How to Build a Data Agent in 2026

https://twitter.com/jamiequint/status/2029705203457609785
1•dmpetrov•4m ago•0 comments

Oura buys gesture-navigation startup DoublePoint

https://www.engadget.com/wearables/oura-buys-gesture-navigation-startup-doublepoint-163758659.html
1•andsoitis•4m ago•0 comments

Codex for Open Source

https://developers.openai.com/codex/community/codex-for-oss/
1•jonluca•5m ago•0 comments

Nested Training for Mutual Adaptation in Human-AI Teaming

https://arxiv.org/abs/2602.17737
1•PaulHoule•5m ago•0 comments

Codex for Open Source Software

https://openai.com/form/codex-for-oss/
1•tosh•5m ago•0 comments

macOS Tahoe windows have different corner radiuses

https://lapcatsoftware.com/articles/2026/3/1.html
2•robenkleene•6m ago•0 comments

Htmx Infinite Scroll

https://alchemists.io/articles/htmx_infinite_scroll
1•speckx•8m ago•0 comments

Show HN: Tri·TFM Lens – 5-axis quality evaluation for ChatGPT/Gemini responses

1•siris950•8m ago•1 comments

Let's build a tool-using agent

https://educatedguesswork.org/posts/tool-calling/
2•ibobev•9m ago•0 comments

AI bubble probably going to be blown? [video]

https://www.youtube.com/watch?v=4Ql24Z8SIeE
1•kar37•9m ago•0 comments

BYD's Second-Generation Blade Battery Makes Western EV Tech Look Ancient

https://insideevs.com/news/789094/byd-second-generation-blade-battery/
2•mooreds•10m ago•0 comments

Should newbies use IDE autocomplete (Intellisense)? (2011)

https://softwareengineering.stackexchange.com/questions/40172/should-newbies-use-ide-autocomplete...
1•mooreds•10m ago•0 comments

Geoffrey Hinton Explains AI Dangers to Neil DeGrassi Tyson [video]

https://www.youtube.com/watch?v=l6ZcFa8pybE
1•keernan•11m ago•1 comments

I Still Blog – and Why the Future of Blogging Is Connected

https://www.ssp.sh/blog/why-i-still-blog/
2•articsputnik•11m ago•0 comments

Show HN: Claudine – A Kanban board for your Claude Code and Codex conversations

https://claudine.pro
1•ycmatt•12m ago•0 comments

Show HN: I built the first scripting language for multiplayer game dev

https://docs.allout.game/scripting/syntax
2•joshuamanton•12m ago•2 comments

Cognitive and Physical Improvement with Positive Age Beliefs

https://www.mdpi.com/2308-3417/11/2/28
1•wjb3•13m ago•0 comments

Manual to Phil Zimmermans PGPfone Circa 1996 [pdf]

https://philzimmermann.com/docs/pgpfone10b7.pdf
2•smalltorch•13m ago•1 comments

Self taught gen-xers with senior dev/pm exp. Where's my imposter syndrome team?

1•_hugerobots_•14m ago•0 comments

Lotus 1-2-3 on the PC with DOS

https://stonetools.ghost.io/lotus123-dos/
1•TMWNN•15m ago•0 comments

Knightian Uncertainty

https://en.wikipedia.org/wiki/Knightian_uncertainty
1•jerlendds•15m ago•0 comments

Generate cell-type specific mRNAs for better vaccines autoregressively

https://tsone.notion.site/Generate-cell-type-specific-mRNAs-for-better-vaccines-autoregressively-...
1•tdsone3•15m ago•0 comments

Withheld Epstein files with accusations against Trump released by justice dept

https://www.bbc.com/news/articles/c4g0dzg6e4mo
5•tartoran•16m ago•1 comments

Three Quiet Brothers on Long Island, All of Them Related to Hitler

https://www.nytimes.com/2006/04/24/nyregion/three-quiet-brothers-on-long-island-all-of-them-relat...
1•Anon84•18m ago•1 comments

Time to teach our children about finance

https://cointales.ai/en
1•mhalifax•18m ago•1 comments

A Plea for Lean Software (1995) [pdf]

https://berthub.eu/articles/LeanSoftware_text.pdf
1•tosh•20m ago•0 comments