Skip to content

Instantly share code, notes, and snippets.

@killercup
Last active August 26, 2023 23:14
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save killercup/a793e09638379dbc74e4 to your computer and use it in GitHub Desktop.
Save killercup/a793e09638379dbc74e4 to your computer and use it in GitHub Desktop.
Convert The Rust Programming Language to Epub
@kmcallister
Copy link

Ruby, Rust, and Haskell working together!

@killercup
Copy link
Author

@kmcallister No Rust code was harmed in the making of these files (just a whole lot of Markdown).

@ehamberg
Copy link

@killercup: Pandoc can actually do syntax-higlighting of Rust code. Simply change

``` {rust}
fn main() {}
```

to

```rust
fn main() {}
```

with a regex or something, and your ePub file will have beautiful, coloured code. :-)

@killercup
Copy link
Author

@RyanBreaker
Copy link

Can we get an update for these files to the latest version of the book? Thanks!

@DearRude
Copy link

https://gist.github.com/killercup/a793e09638379dbc74e4#gistcomment-1452859
Won't be an update in the code or the ebook download links?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment