# Bug? Import and Split .md Strips Out the Headers

**URL:** <https://forum.literatureandlatte.com/t/bug-import-and-split-md-strips-out-the-headers/94325>\
**Category:** Windows Beta (Archived)\
**Created:** [January 25, 2021, 7:57pm UTC](https://forum.literatureandlatte.com/t/bug-import-and-split-md-strips-out-the-headers/94325 "2021-01-25T19:57:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krastev](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/krastev/32/12843_2.png) [@krastev](https://forum.literatureandlatte.com/u/krastev)\
**Post date:** [January 25, 2021, 7:57pm UTC](https://forum.literatureandlatte.com/t/bug-import-and-split-md-strips-out-the-headers/94325/1 "2021-01-25T19:57:58Z")

</div>

Bug? Import and Split .md Strips Out the Headers  
When I Import and Split a .md file with the following settings:  
[attachment=2]Clipboard Image.png[/attachment]

Scrivener strips out the headers and instead uses the first line after those headers as a header.

For example, in my .md file I have the following:  
#Ghost  
##Outline

1. The girl ventures after the animal
2. Another child, that was accompanying her…  
##Spark  
What gave birth…

One would expect the result in Scrivener’s Binder to be:  
[attachment=1]Clipboard Image (2).png[/attachment]

But instead, it’s:  
[attachment=0]Clipboard Image (1).png[/attachment]

---

<div class="post-metadata">

**Author:** ![AmberV](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/amberv/32/13021_2.png) [@AmberV](https://forum.literatureandlatte.com/u/AmberV)\
**Post date:** [January 25, 2021, 9:02pm UTC](https://forum.literatureandlatte.com/t/bug-import-and-split-md-strips-out-the-headers/94325/2 "2021-01-25T21:02:32Z")

</div>

There have been some improvements made to the internal builds, and I don’t think this is any longer a problem. I am running into another issue (first letter gets chopped), but the heading outline is coming in properly. Since BBCode kind of messes with whitespacing, here is the text text I used, which is slightly reformatted from yours (though I tried it verbatim as well, which I believe is technically valid Markdown, if a bit dense):

[code]# Ghost

## Outline

1. The girl ventures after the animal
2. Another child, that was accompanying her…

## Spark

What gave birth…[/code]

I got:

`Draft/
    Ghost/
        Outline
            ". The girl ventures after the animal"
            "2. Another child, that was accompanying her..."
        Spark
            "hat gave birth..."`

So obviously not quite right yet, but better than what you got.

---

<div class="post-metadata">

**Author:** ![krastev](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/krastev/32/12843_2.png) [@krastev](https://forum.literatureandlatte.com/u/krastev)\
**Post date:** [January 25, 2021, 10:36pm UTC](https://forum.literatureandlatte.com/t/bug-import-and-split-md-strips-out-the-headers/94325/3 "2021-01-25T22:36:46Z")

</div>

Thanks. I’ll test it again when the next version comes out.
