Skip to content

2.4

Compare
Choose a tag to compare
@RickStrahl RickStrahl released this 10 Mar 06:51
· 156 commits to main since this release

download

March 10th, 2022

  • You Tube Embedding Window
    You can now embed YouTube videos into a document using the YouTube Widget on the toolbar. You can paste a YouTube Url (watch, embed or shortcut), preview the video, set a title and default resolution, then embed it into the page as an Html fragment. The Html is formatted to autosize both horizontally and vertically adjusted to the width of the document.

  • Twitter Tweet Embedding Information
    MM doesn't include special UI to embed Tweets into your content as Twitter provides an easy way to pick up ready to paste Html that you can paste into a Markdown document. However to make this process more discoverable we've added a shortcut Tweet toolbar button in the Extension Tags dropdown of the toolbar. This button links to a help topic that describes the two steps to create an Html widget on Twitter and paste it into markdown.

  • Updated Gist Embedding Addin
    Although external, this add in is used by quite a few people. The addin has been updated with a few UI updates to make it quicker and easier to use. You can now also copy a Gist id or script tag for existing Gists, delete Gists. Save to and Load From Gist also have a host of updates to make it easier to access these options from the Gist Listing view.

  • Added Markdown HtmlEncode and UrlEncode Shortcuts
    You can now easily HtmlEncode a block of text or UrlEncode a value using shortcuts on the Extended Markdown Operations dropdown from the toolbar.

  • Alt-X Shortcut for dropping down Extended Markdown Features
    There's new Alt-X (default) shortcut key that drops down the Extended Markdown features from the toolbar for quick access. This menu has things like Upper/Lower Case, bolditalic, HtmlEncode, UrlEncode etc. Also updated the documentation for Markdown Monster Shortcut keys.

  • Improved Markdown Quote Handling (ctrl-q)
    Quote handling (> content) now better supports single line or no selections, prepending the quote mark at the beginning of the line. MM now also checks for already quoted lines and doesn't double quote any longer.

  • Command Line Opening of Files using filename:lineno Syntax
    In addition to the --lineno command line switch you can now also use :lineno at the end of a filename to open a file at that line. Example: c:\temp\test.md:22. The individual file lineno overrides the --lineno parameter which works only against the first opened file.

  • Support For Better Html Document Previews
    There's now better raw HTML document editing support (ie. .html files) in Markdown Monster as previews now show related resource content. You get many of the same live preview benefits that are also available with Markdown documents. Images, styles, scripts and other related assets now correctly load in the previewer for HTML documents via an inject <base> tag that points back to the document's host folder. #907

  • Addins: Fix Addin Repository Urls
    Due to changes at GitHub related to branch names etc. we've had to change the way addins report their default Urls. The new Urls require providing a branch name (ie. /tree/main etc. suffix to repo). This is required since we can no longer assume a master or main branch.
    This is a breaking change - the new addin repository Urls break old applications so for older v2 versions the Addin Manager is broken. Please update to latest.

  • Addins: Add AdditionalDropdownMenuItems to AddinMenuItem
    You can now add additional menu items to the Addin drop down menu on the Toolbar. This allows addins to be more obvious about features available by the addin in one place, in addition to optional integration into the Main Menu (which requires a little more work).

  • Addins: New OnApplicationInitialized() Handler
    This handler replaces the OnModelLoaded() handled which more clearly identifies the purpose of this handler. This method is now set up to be the default Addin configuration method where the default Id, name and menu item configuration is placed instead of in OnApplicationStart(). The problem with OnApplicationStart() is that it fires before there is any app context - no Window, no Dispatcher, no Model. OnApplicationInitialized() ensures the Window is instantiated, a Dispatcher is available and the AppModel is available.

  • Addins: Updated dotnet new and Visual Studio Addin Project Templates
    We've updated both types of templates in line with the changes for OnApplicationInitialized() and cleaned up the templates and added additional comments to the generated addin and configuration classes.

  • Updated: Mermaid and MathMl now work without requiring Allow Script Rendering
    These two RenderExtensions provide diagram and math equation rendering into Markdown now work without explicitly requiring the AllowRenderScriptTags option to be set as they don't actually require JavaScript code inside of the rendered Markdown body any longer. They are still disabled by default but can now be enabled via just the UseMermaid and UseMathematics configuration settings. A restart is required for changes to these values as the RenderExtensions need to be reloaded.

  • Fix: Re-enabled the Microsoft DocFx Markdown Parser
    We temporarily had to remove the Microsoft DocFx parser, due to a dependency version conflict with the MarkDig parser. Now that MarkDig versions have been re-synced to the latest versions the DocFx Parser is available again from the Markdown Parser dropdown on the toolbar.

  • Fix: Focus with New and Non-Existing Documents from Command Line
    Fixed focus issues for opening a new or non-existing document from the command line. Focus now starts in the editor.

  • Fix: GridTable LineFeed Issues
    Fix Grid table edit and format table inputs when table cells have empty lines. These empty lines are no longer stripped. Fix extra linefeed at end of generated GridTable output/paste operations.
    #901

  • Fix: markdownmonster: Protocol Handler with text
    Fix bug where the markdownmonster:untitled.base64:<data> handler was not assigning the document data passed into the newly opened document. Fixed.

  • Fix: GridTable Parsing with Back to Back Tables
    Fix Grid Tables when tables are butted up against each other without separating lines. Note: This is legal but the preview won't actually render it and most Markdown parsers fail to render this correctly. Although the editor now supports this functionality, it's best to use a blank line between two tables to ensure it renders correctly regardless of parser. #904

  • Fix Mermaid Rendering
    Fix Mermaid rendering for certain Mermaid content by Html Encoding the body to render. Previously the unencoded text would fail to render correctly. Encoding is applied only the ```mermaid sections, not the raw Html <div class="mermaid"> which is used as is meaning that user is responsible for encoding. #911