Check with loose syntax. Seeing errors is better than seeing nothing at all.
Screenshots
Environment (if applicable)
OneNote Version: [e.g. Office 2019, O365, also 32bit or 64bit?]
OneMore Version [e.g. 3.4 - from the About dialog or from the log file]
Additional Context
14|09:43:41.463| Running command PreviewMarkdownCommand
14|09:43:41.498| Error running command PreviewMarkdownCommand
14|09:43:41.498| System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: River.OneMoreAddIn
StackTrace: at River.OneMoreAddIn.Models.PageEditor.IndentLevel(XElement element)
at River.OneMoreAddIn.Models.PageEditor.<ExtractSnippets>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at River.OneMoreAddIn.Models.PageEditor.<ExtractSnippets>d__21.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`1.GetResult()
at River.OneMoreAddIn.Models.PageEditor.<ExtractSelectedContent>d__18.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`1.GetResult()
at River.OneMoreAddIn.Commands.PreviewMarkdownCommand.<Execute>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.<Run>d__6.MoveNext()
TargetSite: [River.OneMoreAddIn] River.OneMoreAddIn.Models.PageEditor::IndentLevel()
Problem to Solve
Casual indetntation causes the error.
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
Check with loose syntax. Seeing errors is better than seeing nothing at all.
Screenshots
Environment (if applicable)
Additional Context