diff --git a/examples/render-input-markdown/README.md b/examples/render-input-markdown/README.md index a5e4606..4d62315 100644 --- a/examples/render-input-markdown/README.md +++ b/examples/render-input-markdown/README.md @@ -16,3 +16,13 @@ Quit with ctrl-Q If you're on linux and there's a compilation error you may have to install xorg-dev and libxcb-composite0-dev, which can be done on apt based distributions with sudo apt install xorg-dev libxcb-composite0-dev + +If you're on macOS and there's a compilation error you may have to install `libxcb` with + + brew install libxcb + +and then `brew list libxcb` to see the library path (something like `/opt/homebrew/Cellar/libxcb/1.16/lib/libxcb.1.1.0.dylib`) + +and `export LIBRARY_PATH="$LIBRARY_PATH:"` (for example `export LIBRARY_PATH="$LIBRARY_PATH:/opt/homebrew/Cellar/libxcb/1.16/lib`) to add it to the library path. + +Then run `cargo run --example render-input-markdown`.