- changed status to open
Markdown filter: wrong indent for image in list
Issue #1348
open
For example:
The original Markdown is:
## Troubleshoot
1. Ensure you can access platform.
![Issue image](/en-us/troubleshoot1.png)
If troubleshooting instructions.
![Trouble image](/en-us/troubleshoot3.png)
You can run **MODE** in a local command window.
2. Map the local COM port to the window.
After pseudo translation is done, and MarkdownFilterWriter
write translation to localized file, The indent in line 8 is wrong.
## Troubleshoot
1. Ensure you can access platform.
![Issue image](/en-us/troubleshoot1.png)
If troubleshooting instructions.
![Trouble image](/en-us/troubleshoot3.png)
You can run **MODE** in a local command window.
2. Map the local COM port to the window.
After debug at processTextUnit(ITextUnit resource)
of MarkdownSkeletonWriter.java
,
for line 8:
linePrefix = " " // 4 spaces
textunit = " ![Trouble image](/en-us/troubleshoot3.png)"
line 2 is image too, but it is ok
linePrefix = "" // empty
textunit = " ![Issue image](/en-us/troubleshoot1.png)"
Comments (2)
-
-
reporter I think for image element, the
TextUnit
shouldn't includeMarkdownLinePrefixAnnotation
, because it seemstoken
of image is full line. - Log in to comment