-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for attaching class attribute to all markdown images (via…
… `markdown.options.css_img_attr`)
- Loading branch information
Showing
2 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Alexandre Mutel. All rights reserved. | ||
// This file is licensed under the BSD-Clause 2 license. | ||
// See the license.txt file in the project root for more information. | ||
|
||
using Lunet.Core; | ||
|
||
namespace Lunet.Markdown; | ||
|
||
public class MarkdownOptions : DynamicObject<MarkdownPlugin> | ||
{ | ||
public MarkdownOptions(MarkdownPlugin parent) : base(parent) | ||
{ | ||
} | ||
|
||
public string Extensions | ||
{ | ||
get => GetSafeValue<string>("extensions", "advanced"); | ||
set => SetValue("extensions", value); | ||
} | ||
|
||
public string CssImageAttribute | ||
{ | ||
get => GetSafeValue<string>("css_img_attr"); | ||
set => SetValue("css_img_attr", value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters