# Documenter.jl: @repl generated output differs from REPL

**URL:** <https://discourse.julialang.org/t/documenter-jl-repl-generated-output-differs-from-repl/108713>\
**Category:** General Usage\
**Tags:** documenter\
**Created:** [January 12, 2024, 12:54am UTC](https://discourse.julialang.org/t/documenter-jl-repl-generated-output-differs-from-repl/108713 "2024-01-12T00:54:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthias314](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Post date:** [January 12, 2024, 12:54am UTC](https://discourse.julialang.org/t/documenter-jl-repl-generated-output-differs-from-repl/108713/1 "2024-01-12T00:54:27Z")

</div>

Let’s say I want to generate the REPL sequence

```julia
julia> f(x) = x
f (generic function with 1 method)

julia> repr(f)
"f"

```

with a `@repl` block in Documenter.jl. If I write

````julia
```@repl
f(x) = x
repr(f)
```

````

then I get the output

```julia
julia> f(x) = x
f (generic function with 1 method)

julia> repr(f)
"Main.f"

```

How can I get rid of the “`Main`” (short of redefining `repr`)?
