Skip to content

Getting an error while trying to conver markdown #1801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hubdows opened this issue Mar 14, 2025 · 2 comments
Open

Getting an error while trying to conver markdown #1801

hubdows opened this issue Mar 14, 2025 · 2 comments
Labels
bug Something isn't working unread I have seen it or had time to refine it yet

Comments

@hubdows
Copy link

hubdows commented Mar 14, 2025

15|08:33:53.144| Running command ConvertMarkdownCommand
15|08:33:53.209| Error running command ConvertMarkdownCommand
15|08:33:53.210| System.TypeLoadException
Message: Could not load type 'System.Numerics.Vector' from assembly 'System.Numerics.Vectors, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Source: System.Memory
StackTrace: at System.SpanHelpers.SequenceEqual(Byte& first, Byte& second, NUInt length)
at Markdig.Helpers.TransformedStringCache.EntryGroup.TryGet(ReadOnlySpan1 inputSpan) at Markdig.Helpers.TransformedStringCache.Get(ReadOnlySpan1 inputSpan)
at Markdig.Parsers.FencedBlockParserBase1.DefaultInfoParser(BlockProcessor state, StringSlice& line, IFencedBlock fenced, Char openingCharacter) at Markdig.Parsers.FencedBlockParserBase1.TryOpen(BlockProcessor processor)
at Markdig.Parsers.BlockProcessor.TryOpenBlocks(BlockParser[] parsers)
at Markdig.Parsers.BlockProcessor.TryOpenBlocks()
at Markdig.Parsers.BlockProcessor.ProcessLine(StringSlice newLine)
at Markdig.Parsers.MarkdownParser.ProcessBlocks(BlockProcessor blockProcessor, String text)
at Markdig.Parsers.MarkdownParser.Parse(String text, MarkdownPipeline pipeline, MarkdownParserContext context)
at River.OneMoreAddIn.Commands.OneMoreDig.ConvertMarkdownToHtml(String path, String markdown)
at River.OneMoreAddIn.Commands.ConvertMarkdownCommand.d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at River.OneMoreAddIn.CommandFactory.d__6.MoveNext()
TargetSite: [System.Memory] System.SpanHelpers::SequenceEqual()

To Reproduce

Steps to reproduce the behavior:

  1. Add Markdown text
  2. Edit > Convert Markdown

Expected Behavior

Should convert to OneNote format.

Screenshots

Image

Environment (if applicable)

Microsoft® OneNote® for Microsoft 365 MSO (Version 2502 Build 16.0.18526.20144) 64-bit

@hubdows hubdows added bug Something isn't working unread I have seen it or had time to refine it yet labels Mar 14, 2025
@hubdows
Copy link
Author

hubdows commented Mar 14, 2025

It seems to be having issues with the code astericks

Image

@pschultzSBU
Copy link

I am also seeing this issue with any markdown I try to convert, similar log messages.

14|12:41:20.258| Error running command ConvertMarkdownCommand
14|12:41:20.258| System.TypeLoadException
Message: Could not load type 'System.Numerics.Vector' from assembly 'System.Numerics.Vectors, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Source: System.Memory
StackTrace: at System.SpanHelpers.SequenceEqual(Byte& first, Byte& second, NUInt length)
at Markdig.Helpers.TransformedStringCache.EntryGroup.TryGet(ReadOnlySpan1 inputSpan) at Markdig.Helpers.TransformedStringCache.Get(ReadOnlySpan1 inputSpan)
at Markdig.Parsers.FencedBlockParserBase1.DefaultInfoParser(BlockProcessor state, StringSlice& line, IFencedBlock fenced, Char openingCharacter) at Markdig.Parsers.FencedBlockParserBase1.TryOpen(BlockProcessor processor)
at Markdig.Parsers.BlockProcessor.TryOpenBlocks(BlockParser[] parsers)
at Markdig.Parsers.BlockProcessor.TryOpenBlocks()
at Markdig.Parsers.BlockProcessor.ProcessLine(StringSlice newLine)
at Markdig.Parsers.MarkdownParser.ProcessBlocks(BlockProcessor blockProcessor, String text)
at Markdig.Parsers.MarkdownParser.Parse(String text, MarkdownPipeline pipeline, MarkdownParserContext context)
at River.OneMoreAddIn.Commands.OneMoreDig.ConvertMarkdownToHtml(String path, String markdown)
at River.OneMoreAddIn.Commands.ConvertMarkdownCommand.d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at River.OneMoreAddIn.CommandFactory.d__6.MoveNext()
TargetSite: [System.Memory] System.SpanHelpers::SequenceEqual()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unread I have seen it or had time to refine it yet
Projects
None yet
Development

No branches or pull requests

2 participants