Closed mgeisler closed 10 months ago
TODO: I would like to add an end-to-end test of this: something which verifies that what we extract in mdbook-xgettext
works with what mdbook-gettext
expects.
TODO: I would like to add an end-to-end test of this: something which verifies that what we extract in
mdbook-xgettext
works with whatmdbook-gettext
expects.
I suppose the unit tests here are good enough — and we'll be testing this soon enough in Comprehensive Rust.
@dyoo, does this look reasonable to you?
This first changes
mdbook-xgettext
so that formatting is preserved from theSUMMARY.md
file.Next,
mdbook-gettext
is changed to translate text from theSUMMARY.md
file without formatting: this is necessary sincemdbook
strips formatting before sending the TOC to the preprocessor.Fixes #66.