Markdown parser is parsing @mentions inside a markdown ``code block`` #699

Closed
opened 2019-11-16 17:55:37 +00:00 by edgarogh · 3 comments
edgarogh commented 2019-11-16 17:55:37 +00:00 (Migrated from github.com)

I have an article containing a code block with a CSS media query whose syntax starts with @media and it is parsed as a mention linking to non-existing user 'media'. I expect code blocks to be completely exempted from further parsing.

live example

  • Plume version: 0.3.0 (installed using the instructions on joinplu.me on the 16th nov. 2019), but hasn't been fixed since according to @AnaGelez (shame on her if she was wrong 😈)
I have an article containing a code block with a CSS media query whose syntax starts with `@media` and it is parsed as a mention linking to non-existing user 'media'. I expect code blocks to be completely exempted from further parsing. [live example](https://plume.edgarogh.fr/~/Dev/little-article-s-brother/) - **Plume version:** 0.3.0 (installed using the instructions on joinplu.me on the 16th nov. 2019), but hasn't been fixed since according to @AnaGelez (shame on her if she was wrong :smiling_imp:)
elegaanz commented 2019-11-16 18:00:13 +00:00 (Migrated from github.com)

The # may also be interpreted as hashtags (I didn't checked tho), which may be an issue for languages like C.

The # may also be interpreted as hashtags (I didn't checked tho), which may be an issue for languages like C.
edgarogh commented 2019-11-16 18:03:28 +00:00 (Migrated from github.com)

Yup #s parsed as hashtags too https://plume.edgarogh.fr/~/Dev/yet-another-test

Yup `#`s parsed as hashtags too https://plume.edgarogh.fr/~/Dev/yet-another-test
epsilon-phase commented 2019-11-16 21:16:45 +00:00 (Migrated from github.com)

This is, notably, fixed by accident in https://github.com/Plume-org/Plume/pull/691#issue-336583050 but that is blocked until the build can be fixed. :/

This is, notably, fixed by accident in https://github.com/Plume-org/Plume/pull/691#issue-336583050 but that is blocked until the build can be fixed. :/
kiwii referenced this issue from a commit 2020-08-11 18:12:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#699
No description provided.