1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-05 10:05:39 +02:00

Fix Markdown in build-rules.md (#1530)

The mixing of HTML and Markdown breaks our translation pipeline: we see
the HTML and fail to parse things correctly.

This might be https://github.com/google/mdbook-i18n-helpers/issues/97,
but I'm not 100% sure.

The fix is to make put the HTML on its own line: then the Markdown is
parsed again inside.

Fixes #1527.
This commit is contained in:
Martin Geisler 2023-11-30 15:55:03 +01:00 committed by GitHub
parent 1ba88ba72e
commit 97e130271d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ You can also add `deps` on other Rust targets. Later we'll use this to
depend upon third party code.
<details>
You must specify _both_ the crate root, _and_ a full list of sources.
The `crate_root` is the file given to the Rust compiler representing the root
file of the compilation unit --- typically `lib.rs`. `sources` is a complete
@ -33,6 +34,7 @@ Students might be wondering why we need a gn template, rather than using
[gn's built-in support for Rust static libraries][0].
The answer is that this template provides support for cxx interop, Rust features,
and unit tests, some of which we'll use later.
</details>
[0]: https://gn.googlesource.com/gn/+/main/docs/reference.md#func_static_library