Archive Browser
Download MarkdigMantisLink.zip, last updated 05/08/2017 (10.77 KB)
Download- md5: 0732dcf3eadac30820596c4fd7bea306
- sha1: b09fac52bfaac22748f6c8210d197492494614e5
- sha256: 1dbb16d0bf3c2416992efe83e97ac37b5e886d7c0aa752007d3c8c459afdcdd9
// Copyright (c) 2017 Cyotek Ltd.
// http://www.cyotek.com/blog/writing-custom-markdig-extensions
// Licensed under the MIT License. See LICENSE.txt for the full text.
using System;
namespace MarkdigMantisLink
{
public class MantisLinkOptions
{
#region Fields
private bool _openInNewWindow;
private string _url;
#endregion
#region Constructors
public MantisLinkOptions()
{
_openInNewWindow = true;
}
public MantisLinkOptions(string url)
: this()
{
_url = url;
}
public MantisLinkOptions(Uri uri)
: this()
{
if (uri == null)
{
throw new ArgumentNullException(nameof(uri));
}
_url = uri.OriginalString;
}
#endregion
#region Properties
public bool OpenInNewWindow
{
get { return _openInNewWindow; }
set { _openInNewWindow = value; }
}
public string Url
{
get { return _url; }
set { _url = value; }
}
#endregion
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate