-
Notifications
You must be signed in to change notification settings - Fork 708
Commit a1a5db7
committed
paip-safari.md - newer conversion
The epub to markdown converter emits code blocks as individual lines of `code`.
The code block fixup would see these series and turn them into triple-backtick code blocks.
Handled multiple issues:
The epub to markdown conversion treated lines of code like sentences, adding inappropriate newlines.
There were some lines of code with leading non-blocking spaces for indentation.
The code block fixup didn’t handle these.
The ascii filter previously turned those non-breaking spaces into *two* spaces, in an attempt to match the indentation in some samples.
This led to some unwanted large indentation in spots.
Currently, the code block fixup eats blank lines in code blocks.
The indentation is *improved,* not *perfect.* Double-checking the book in O’Reilly Safari, indentation is weird.
TODO:
This has some indentation that's not in sync with the individual chapters.
I think I've consolidated all the multiline code blocks, but indentation was harder -
copying this as-is would overwrite the Lisp code copypasta'ed into the chapters.
At the start, I'd check git blame in Github, but it was a painful slog,
and this was a painstaking manual process already.1 parent b90cf7e commit a1a5db7Copy full SHA for a1a5db7
1 file changed
+27899
-37415
lines changed
0 commit comments