Skip to content
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
Closed

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

jskeet opened this issue Apr 15, 2016 · 0 comments
Assignees
Labels
bug
Milestone

Comments

@jskeet
Copy link

@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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.