Compare commits
1 commit
travis-arm
...
master
Author | SHA1 | Date | |
---|---|---|---|
c3e02a0d1a |
7 changed files with 9 additions and 10 deletions
15
.travis.yml
15
.travis.yml
|
@ -4,10 +4,6 @@ rust:
|
||||||
- beta
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
arch:
|
|
||||||
- amd64
|
|
||||||
- arm64
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
|
@ -17,12 +13,11 @@ before_install:
|
||||||
- sudo apt-get install -y musl-tools
|
- sudo apt-get install -y musl-tools
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- TARGET=`[ $TRAVIS_CPU_ARCH == 'amd64' ] && echo x86_64 || echo aarch64`-unknown-linux-musl
|
- rustup target add x86_64-unknown-linux-musl
|
||||||
- rustup target add $TARGET
|
- cargo test --target=x86_64-unknown-linux-musl
|
||||||
- cargo test --target=$TARGET
|
- cargo build --release --target=x86_64-unknown-linux-musl
|
||||||
- cargo build --release --target=$TARGET
|
- strip -s target/x86_64-unknown-linux-musl/release/sausagewiki
|
||||||
- strip -s target/$TARGET/release/sausagewiki
|
- XZ_OPT=-9 tar Jcf sausagewiki.tar.xz -C target/x86_64-unknown-linux-musl/release/ sausagewiki
|
||||||
- XZ_OPT=-9 tar Jcf sausagewiki-$TRAVIS_CPU_ARCH.tar.xz -C target/$TARGET/release/ sausagewiki
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
|
|
|
@ -28,7 +28,11 @@ pub fn render_markdown_for_fts(src: &str) -> String {
|
||||||
|
|
||||||
for event in p {
|
for event in p {
|
||||||
match event {
|
match event {
|
||||||
|
// As far as I understand this is a basic
|
||||||
|
// sanitizing to prevent HTML from
|
||||||
|
// appearing in page.
|
||||||
Text(text) => buf.push_str(&text.replace(is_html_special, " ")),
|
Text(text) => buf.push_str(&text.replace(is_html_special, " ")),
|
||||||
|
// Footnote links maybe?
|
||||||
End(Tag::Link(uri, _title)) => {
|
End(Tag::Link(uri, _title)) => {
|
||||||
buf.push_str(" (");
|
buf.push_str(" (");
|
||||||
buf.push_str(&uri.replace(is_html_special, " "));
|
buf.push_str(&uri.replace(is_html_special, " "));
|
||||||
|
|
Loading…
Reference in a new issue