I used to follow the instructions at <https://pandoc.org/installing.html#custom-cabal-method> to build pandoc with the cabal configure `--flags="embed_data_files lua53"`.
cabal install --only-dependencies
cabal configure --prefix=/usr/local --flags="embed_data_files lua53"
cabal build
./dist-newstyle/build/x86_64-osx/ghc-*/pandoc-*/x/pandoc/build/pandoc/pandoc --version
```
Or do I have to first run those steps in the top-level directory, then do `cabal install`, then repeat them in the `pandoc-cli` subdirectory? When I try to only do the steps in the `pandoc-cli` subdirectory, it seems like a binary version of the main `pandoc` library is being downloaded, rather than one built using my custom configure flags.
Is the option to build using the Lua 5.3 engine still available? I've been fiddling around and it seems like however I do the build, I end up with a pandoc executable that says it uses the Lua 5.4 engine.