1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-25 02:06:46 +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

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. depend upon third party code.
<details> <details>
You must specify _both_ the crate root, _and_ a full list of sources. 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 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 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]. [gn's built-in support for Rust static libraries][0].
The answer is that this template provides support for cxx interop, Rust features, The answer is that this template provides support for cxx interop, Rust features,
and unit tests, some of which we'll use later. and unit tests, some of which we'll use later.
</details> </details>
[0]: https://gn.googlesource.com/gn/+/main/docs/reference.md#func_static_library [0]: https://gn.googlesource.com/gn/+/main/docs/reference.md#func_static_library