VSCode – Markdown Edition – DEV Community

With the 1.67 release, markdown good points programming language like tooling in VSCode

Particularly:

  • drag and drop recordsdata into the editor to create a markdown hyperlink
  • discover all references to header|hyperlinks|recordsdata|urls within markdown
  • rename headers|hyperlinks inside markdown (and propagate the modifications to all locations the place the hyperlink is used)
  • rename markdown recordsdata (and propagate modifications to all hyperlinks referencing mentioned file)

If we transfer previous drag and drop, it is notable that each one different capabilities are associated to referencing and renaming symbols. These are capabilities which are extra generally related to programming languages than markdown.

A programming language is any algorithm that converts strings… to varied sorts of machine code output

Wikipedia

Programming languages typically have a strict syntax that constrains the language. IDEs leverage this strict syntax to supply options to govern symbols throughout the language.

Markdown additionally has syntax (albeit extra loosely outlined) . This makes it doable to introduce related transformations onto markdown.

The rationale that this performance is beneficial (and obligatory) for programming languages is as a result of codebases as we speak will be large, surpassing hundreds of millions of lines of code.

Repositories of markdown will also be large. They’re more and more used to doc and retailer normal data – each within the context of private data administration (PKM) and crew data administration (TKM).

For functions of illustration – the first vault (the circle titled non-public) for the Dendron crew has over 400k strains of markdown.

The illustartion is generated utilizing a fork of github’s repo-visualization code, first described here

Working cloc returns the next output:

cloc --vcs=git .
github.com/AlDanial/cloc v 1.92  T=7.82 s (1472.4 recordsdata/s, 65739.6 strains/s)
-------------------------------------------------------------------------------
Language                     recordsdata          clean        remark           code
-------------------------------------------------------------------------------
Markdown                     11494         108500             19         404711
JSON                             3              5              0            369
YAML                            14              1              0            351
-------------------------------------------------------------------------------
SUM:                         11511         108506             19         405431
-------------------------------------------------------------------------------
Enter fullscreen mode

Exit fullscreen mode

Given the shared syntactical properties and issues of scale between programming languages and markdown, it is smart that the identical tooling can work for each.

VSCode, and IDEs extra broadly, assist builders handle giant code bases by making out there instruments to leverage and manipulate the syntax of programming languages. By shifting a few of this tooling to markdown, can we do the identical for giant markdown repositories?

Our bet at Dendron is a powerful sure! Because of this we constructed our data administration platform within VSCode. By leveraging the paradigms from IDEs and making use of them to structured markdown, our mission is to assist people manage any amount of information.

Add a Comment

Your email address will not be published. Required fields are marked *