# Bug OP-14160 - PDF export fails with "undefined method `sourcepos'"

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-14160

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.2.1 |
| Observed in versions | 13.2.0 |
| Sprint | 13.2.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Create a work package with invalid markdown (tbd)
2.  Try to export the work package to PDF

### What is the buggy behavior?

*   the export fails with:

```text
The PDF export could not be saved: undefined method `sourcepos' for #<Markly::Node(list_item): source_position={:start_line=>8, :start_column=>7, :end_line=>8, :end_column=>69}, string_content=nil children=[#<Markly::Node(paragraph): source_position={:start_line=>8, :start_column=>11, :end_line=>8, :end_column=>69}, string_content=nil
```

### What is the expected behavior?

1.  The export should work

### Environment information

**OpenProject installation type**

*   [x] Hosted cloud edition
*   [ ] Packaged installation
    *   What distribution?
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

_v13.2.0_
