Author Topic: Markdown formatting problem  (Read 324 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1783
  • Hero Points: 174
  • Text
Markdown formatting problem
« on: July 08, 2019, 08:13:49 pm »
Double underscores should bold, but not when embedded in other text.
Given this text:
Code: [Select]
__This Is Bold Text__

Embedded__PlainText__Words

Slick bolds the first case correctly, but then it makes "PlainText__Words" italic.
It seems to recognize  a single leading underscore "_Plain".
Then, I think, "s__Words" is treated as two separate underscores, end italic+begin italic, instead of a single double.
It should have PlainText in bold: EmbeddedPlainTextWords

Slick also doesn't handle nesting...
Code: [Select]
_begin italic with __nested bold__ text here_
_begin italic with **nested bold** text here_
Both fail, but differently.

Should be: begin italic with nested bold text here


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4791
  • Hero Points: 388
Re: Markdown formatting problem
« Reply #1 on: July 09, 2019, 01:32:23 am »
The first issue can definitely be improved. We will improve it for v24.

Nested emphasis isn't support yet. I'll see if we can add support for this for v24.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4791
  • Hero Points: 388
Re: Markdown formatting problem
« Reply #2 on: July 09, 2019, 11:45:36 pm »
According to the docs (https://daringfireball.net/projects/markdown/syntax) and some converter tools I've tried (like https://daringfireball.net/projects/markdown/dingus) "PlainText" in your example "Embedded__PlainText__Words" should be bolded.

jporkkahtc

  • Senior Community Member
  • Posts: 1783
  • Hero Points: 174
  • Text
Re: Markdown formatting problem
« Reply #3 on: July 10, 2019, 12:22:14 am »
Correct, but Slick formats it like this: "Embedded__PlainText__Words"

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4791
  • Hero Points: 388
Re: Markdown formatting problem
« Reply #4 on: July 10, 2019, 01:46:02 pm »
SlickEdit is definitely messing up this one. Part of the reason it's messing up is because it's trying to avoid bolding embedded text and not doing it right. For the next implementation we will allow bold/italic for this. If we run into a problem, we can always be more conservative.