Skip to content

Commit

Permalink
Changed MarkdownItem property setter visibility to facilitate subclas…
Browse files Browse the repository at this point in the history
…sing
  • Loading branch information
WilStead committed Apr 26, 2021
1 parent e9ad84f commit 0e9173c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: publish
env:
VERSION: '0.3.0-preview'
VERSION: '0.3.1-preview'
PRERELEASE: true
on:
push:
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.1-preview
### Changed
- Change MarkdownItem property setter visibility to facilitate subclassing

## 0.3.0-preview
### Changed
- Changed MarkdownItem constructor, method visibility and property attributes to facilitate
Expand Down
8 changes: 4 additions & 4 deletions src/MarkdownItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,25 @@ public abstract class MarkdownItem : IdItem, ISerializable
/// The rendered HTML content.
/// </summary>
[JsonInclude]
public string Html { get; private protected set; }
public string Html { get; protected set; }

/// <summary>
/// The markdown content.
/// </summary>
[JsonInclude]
public string MarkdownContent { get; private protected set; }
public string MarkdownContent { get; protected set; }

/// <summary>
/// A preview of this item's rendered HTML.
/// </summary>
[JsonInclude]
public string Preview { get; private protected set; }
public string Preview { get; protected set; }

/// <summary>
/// The wiki links within this content.
/// </summary>
[JsonInclude]
public IReadOnlyCollection<WikiLink> WikiLinks { get; private protected set; } = new List<WikiLink>().AsReadOnly();
public IReadOnlyCollection<WikiLink> WikiLinks { get; protected set; } = new List<WikiLink>().AsReadOnly();

/// <summary>
/// Initializes a new instance of <see cref="MarkdownItem"/>.
Expand Down

0 comments on commit 0e9173c

Please sign in to comment.