# Bug XWI-180 - Wiki macro is not resolved in PDF export

Project: Stream XWiki integration
Status: in development
URL: https://community.openproject.org/work_packages/XWI-180

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Wiki, Integrations / XWiki, Modules and project features / Export / PDF Export |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Jan Sandbrink |
| Accountable |  |
| Product manager |  |
| Developers | Jan Sandbrink |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Use the + Insert function in a work package

2.  Choose a wiki page

3.  Click on "Generate PDF"

### What is the buggy behavior?

  - The macro is rendered as `[[1:2]]`

### What is the expected behavior?

1.  The macro should be a link with the site title, the same as rendered in the frontend

### Screenshots and other files

<br>

<figure class="image image_resized op-uc-figure" style="width:506px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/926512/content"></div><figcaption class="op-uc-figure--description">WIki Link</figcaption></figure>

<figure class="image image_resized op-uc-figure" style="width:167px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/926513/content"></div><figcaption class="op-uc-figure--description">PDF</figcaption></figure>

### Technical information

`WorkPackage::Exports::Macros::WikiLinks` exists, but seem not to be applied, as the markdown source does not match

<img class="image_resized op-uc-image op-uc-image_inline" style="width:245px;" src="/api/v3/attachments/926517/content">

### Environment information

**OpenProject installation type**

- [x] All

**OpenProject version**

18.0

**Browser**

- [x] All

**Operating System**

- [x] All

**Language**

- [x] All
