New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jskeet opened this Issue Apr 15, 2016 · 0 comments

Comments

Projects
None yet
4 participants
@jskeet

jskeet commented Apr 15, 2016

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.

@vicancy vicancy added the bug label Apr 18, 2016

@chenkennt chenkennt added this to the v1.9 milestone Apr 28, 2016

MarzinZ pushed a commit that referenced this issue May 4, 2016

@qinezh qinezh closed this in e4cbdb3 May 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment