A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/403 below:

gfm-mode does not treat ```no newline here``` correctly · Issue #403 · jrblevin/markdown-mode · GitHub

Expected Behavior

Given

`one`
``two``
```three```

gfs-mode should only set the invisible property to markdown-markup for all the backquotes but not for any of the other characters.

Actual Behavior

The invisible property is also set to markdown-markup for the three part. (As expected that is not done for the one and two parts.) At least for gfm-mode, strings that do not contain any newline characters and that are delimited with three backquotes on both sides should be treated the same as such strings are when they have only one or two backquotes on both sides.

I don't know whether using three backquotes that way is valid for official markdown, but it is for gfm.

Note that the three part above does not serve the same purpose as the language part below.

The language part is markup; the three part is not.

Steps to Reproduce
  1. Copy the above first code-block above into a gfm-mode buffer.
  2. Depending on how you did the copying, the three lines may begin with newline characters. If so, then remove those.
  3. Evaluate (add-to-invisibility-spec 'markdown-markup) in that buffer.
  4. Watch three become invisible but not two or one.
Software Versions

Latest markdown-mode commit (115f77d).

Emacs and OS versions are irrelevant.

Other information

This is in reference to magit/forge#45.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4