# Documenter: preprocess ?foo to \[\`foo\`\](@ref).. possible?

**URL:** https://discourse.julialang.org/t/documenter-preprocess-foo-to-foo-ref-possible/86494
**Category:** Package Management
**Tags:** question, documentation, documenter
**Created:** [August 29, 2022, 10:45am UTC](https://discourse.julialang.org/t/documenter-preprocess-foo-to-foo-ref-possible/86494 "2022-08-29T10:45:51Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [August 29, 2022, 3:12pm UTC](https://discourse.julialang.org/t/documenter-preprocess-foo-to-foo-ref-possible/86494/3 "2022-08-29T15:12:37Z")

</div>

Sorry, I thought there could have been a built-in solution. I realised we go back to [this discussion about adding a callback](https://discourse.julialang.org/t/what-do-you-think-add-a-callback-to-documents-page-to-allow-modification-of-md-pages-on-the-fly-before-parsing/79217/7) (and [this pull request](https://github.com/JuliaDocs/Documenter.jl/pull/1798)) to custom preprocess the documentation source.

In that case, I ended up implementing it by using temporary files/directories in the `make.jl` file, but a simple custom function string preprocessing would be much simpler both to implement (that pull request was just 12 line changes) and to use (I have no idea how to implement it at the AST level as suggested by @mortenpi , it seems much more complex…)…

---

_[View the full topic](https://discourse.julialang.org/t/documenter-preprocess-foo-to-foo-ref-possible/86494)._
