mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 16:38:22 +03:00
Turn your audience into a business. Publishing, memberships, subscriptions and newsletters.
bloggingcmsemberghosthacktoberfestheadless-cmsjamstackjavascriptjournalismnodejspublishingweb-application
1dad18a06c
no issue - Added a language indicator when in rendered mode and a language input when in edit mode - Allow code card language to be set with <code>```lang</code>+<kbd>Space/Enter</kbd> expansion - previously <code>\`\`\`</code> would immediately create a code card, the <kbd>Space/Enter</kbd> is now necessary for the insertion to occur - lang is optional <code>\`\`\`</code>+<kbd>Space/Enter</kbd> will insert a code card with no language selected - requires <kbd>Enter</kbd> to be pressed to finalise the expansion and insert the card - added hook for text expansions to skip newline creation for when they are triggered with <kbd>Enter</kbd> - Set the code card editor's language mode based on selected language - set the CodeMirror mode based on the code card payload language - add a basic map of language short codes to their respective CodeMirror modes - observe `mode` property in `{{gh-cm-editor}}` so that the mode is properly set when it's changed after initial render |
||
---|---|---|
ghost/admin |