diff --git a/CHANGELOG.md b/CHANGELOG.md index e9f5392..53ca467 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,10 @@ See this project's [releases](/../../../releases). ## [Unreleased] +### Added + +- Added markdown links and wikilinks in comments + ### Changed - Made `MarkdownRenderer.render` to use `plugin` as component diff --git a/README.md b/README.md index ad9dba8..8693f43 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,10 @@ The different component colours that can be set within a theme are: ![Solarized Default Dark Colours](images/SolarizedDefaultDarkColours.png) +### Codeblock Comment Links + +You can type markdown links (both internal and external) as well as wikilinks in comments inside codeblocks and they will be rendered as links. This can help reference other files. Embeds are not supported. + ## Codeblock Parameters Codeblock parameters are added to the first line of the codeblock following the language. They can be added in any order. If no language is set, a space should be left after the codeblock delimiter ` ``` ` to indicate that the first parameter is NOT the language of the codeblock. Also note that all parameters can be set with either `:` or `=`. diff --git a/src/Settings.ts b/src/Settings.ts index 4c88e80..52e04c5 100644 --- a/src/Settings.ts +++ b/src/Settings.ts @@ -2129,12 +2129,6 @@ export const LANGUAGES: {[key: string]: Language} = { } }; -const LANGUAGE_COMMENT_REGEXES: Record = { - "#": /(? = ["javascript","typescript","bash","csharp","wolfram","nb","wl","hs","py","scpt"]; const EXECUTE_CODE_CANONICAL_LANGUAGES: Array = ["js","ts","cs","lean","lua","python","cpp","prolog","shell","groovy","r","go","rust","java","powershell","kotlin","mathematica","haskell","scala","racket","fsharp","c","dart","ruby","batch","sql","octave","maxima","applescript"];