Describe the bug
Image file path encoding failed, when the path contains double-underline pairs, e.g. ![[double__underline__pairs.jpg]].
BUG: filename is encoded into double**underline**pairs.jpg but NOT double__underline__pairs.jpg
Similar SOLVED bugs: #100.
Example usage of such naming convention: in AI, for hyper-params. Say, we train two K-means models named kmeans, one into k=5 cluster, and another into k=10 clusters. Then, for each model, we evaluate some metrics and acquire a plot. To save the two plots with param k distinguishable from filenames, a common practice is using such a naming convention, as kmeans__k=5.jpg and kmeans__k=10.jpg, for the model into 5 and that into 10 clusters, respectively.
Samples to Reproduce
Example Screenshot (config PORT is changed to 4399):
Expected behavior
The file path encoding should work correctly, as http://localhost:4399/double__underline__pairs.jpg, but NOT http://localhost:4399/double**underline**pairs.jpg (as is shown in the reproduction example).
Describe the bug Image file path encoding failed, when the path contains double-underline pairs, e.g.
![[double__underline__pairs.jpg]]
.double**underline**pairs.jpg
but NOTdouble__underline__pairs.jpg
kmeans
, one intok=5
cluster, and another intok=10
clusters. Then, for each model, we evaluate some metrics and acquire a plot. To save the two plots with paramk
distinguishable from filenames, a common practice is using such a naming convention, askmeans__k=5.jpg
andkmeans__k=10.jpg
, for the model into 5 and that into 10 clusters, respectively.Samples to Reproduce
Example Screenshot (config
PORT
is changed to4399
):Expected behavior
The file path encoding should work correctly, as
http://localhost:4399/double__underline__pairs.jpg
, but NOThttp://localhost:4399/double**underline**pairs.jpg
(as is shown in the reproduction example).The image should also be rendered.