Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions src/PandocNet/Options.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Pandoc;
namespace Pandoc;

public class Options
{
Expand All @@ -20,6 +20,11 @@ public class Options
/// </summary>
public string? LogFile { get; set; }

/// <summary>
/// Custom arguments to be passed to Pandoc.
/// </summary>
public string[]? CustomArguments { get; set; }

public static IEnumerable<string> GetArguments(Options? options)
{
if (options == null)
Expand All @@ -41,5 +46,13 @@ public static IEnumerable<string> GetArguments(Options? options)
{
yield return $"--log={options.LogFile}";
}

if (options.CustomArguments != null)
{
foreach (var arg in options.CustomArguments)
{
yield return arg;
}
}
}
}
}