dotnet / dotnet/docfx

Comments in Markdown file shown in search results snippet

Open
#3,262 3 comments 0 reactions 1 assignee Claimed by @qinezh View on GitHub
search
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**DocFX Version Used**:
2.38

**Template used**: (`default` or `statictoc` or contain custom template)
Custom

**Steps to Reproduce**:

1. Comment out text in Markdown file:
![2018-08-22 12_59_40-find-and-replace-dock md - docs - visual studio code](https://user-images.githubusercontent.com/15255009/44485298-5a9fae00-a60d-11e8-8361-3c4748487e31.png)
2. Build and publish
3. Open article in built website - no comments are shown:
![2018-08-22 12_51_26-find and replace dock _ articles](https://user-images.githubusercontent.com/15255009/44484476-1d3a2100-a60b-11e8-8a37-e77a88276438.png)
4. Search for article - comments are shown in snippet):
![image 3](https://user-images.githubusercontent.com/15255009/44485358-89b61f80-a60d-11e8-8838-dba31fbf3a5e.png)
--
**Expected Behavior**:
That commented-out text is not shown in search results preview snippet
**Actual Behavior**:
Commented-out text is shown in search results preview snippet

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.