diff --git a/src/SpecFirst.MarkdownParser/DecisionTableMarkdownParser.cs b/src/SpecFirst.MarkdownParser/DecisionTableMarkdownParser.cs index d812ad7..ecadccf 100644 --- a/src/SpecFirst.MarkdownParser/DecisionTableMarkdownParser.cs +++ b/src/SpecFirst.MarkdownParser/DecisionTableMarkdownParser.cs @@ -84,10 +84,11 @@ private static string ParseMarkdownToHtml(string markdownText) private static string GetScript() { var assembly = Assembly.GetExecutingAssembly(); - string resourcePath = "SpecFirst.MarkdownParser.Script.bundle.js"; + string resourcePath = $"{assembly.GetName().Name}.Script.bundle.js"; using Stream stream = assembly.GetManifestResourceStream(resourcePath)!; using StreamReader reader = new StreamReader(stream!); - return reader.ReadToEnd(); + var script = reader.ReadToEnd(); + return script; } } }