Erroneous handling of "cd" in markdown bash syntax highlighting

Issue #12666 resolved
mchenstridge created an issue

In markdown containing bash code, "cd" is highlighted such that it looks like a comment. In the example below, I would expect "cd" to appear the same as "mkdir".

# This is a comment
mkdir ~/repo
cd ~/repo

FWIW the resulting HTML span element corresponding to "cd" has the class "nb" (I haven't been able to work out which language feature this corresponds to, comments appear to have the class "c1").

Comments (1)

  1. Kaleb Elwert

    nb is the css class in Pygments for Name.Builtin, so this is expected.

    Because we currently use Pygments for syntax highlighting, changes there should eventually get used on bitbucket.

  2. Log in to comment