Skip to content

First character of text is swallowed in "extra" markdown #265

@jskeet

Description

@jskeet

Using docfx 1.7.1 on Windows, with dnx.

docfx.json:

{
  "metadata": [ { "src": [{ "files": "project.json" }], "dest": "obj/api" } ],
  "build": {
    "content": [{
      "files": [ "**/*.yml" ],
      "cwd": "obj/api",
      "dest": "api"
    }],
    "overwrite": "extra.md",
    "dest": "_site"
  }
}

project.json:

{
  "version": "1.0.0",
  "frameworks": { "net451": { } }
}

DocfxTest.cs:

namespace Foo
{
  /// <summary>Just a demo</summary>
  public class Bar {}
}

extra.md - not the lack of a blank line after the second "---"

---
uid: Foo.Bar

---
abc

The resulting HTML file for Foo.Bar contains:

              <div class="markdown level0 summary"><p>Just a demo</p>
</div>
              <div class="markdown level0 conceptual"><p>bc</p>
</div>

Note how the a of abc has been removed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions