Tatoeba / tatowiki

a wiki made with cppcms
Other
6 stars 2 forks source link

Asterisks are not always displayed properly in links in the Wiki. #1

Closed ckjpn closed 4 years ago

ckjpn commented 4 years ago

Screenshot

Screen Shot 2019-12-13 at 14 01 16

The code

### How do I search for "of" followed by words ending in "ing" without any intervening words?

 * [of NEAR/1 *ing -"*ing of"](https://tatoeba.org/eng/sentences/search?query=of+NEAR%2F1+*ing+-%22*ing+of%22&from=eng&to=none&user=&orphans=no&unapproved=no&has_audio=&tags=&list=&native=&trans_filter=limit&trans_to=und&trans_link=&trans_user=&trans_orphan=&trans_unapproved=&trans_has_audio=&sort=words&sort_reverse=)  Use the advanced search, sorting by "fewest words." 

It's on this page.

https://en.wiki.tatoeba.org/articles/show/text-search#how-do-i-search-for-%22of%22-followed-by-words-ending-

AndiPersti commented 4 years ago

After a quick look at the source code of the wiki, I guess the wiki uses markdown for formatting (in your screenshot the part between the two asterisks is italicized).

You probably need to escape them with backslashes:

* [of NEAR/1 \*ing -"\*ing of"] ...
ckjpn commented 4 years ago

Yes, when I woke up in the middle of the night, I thought that I'd try that.

Perhaps things that need to be escaped should be listed along with the other info on formatting text.

Underscores need to be escaped, too.

How to format text
#Big title
##Smaller title
[text](http://example.com)
[text](other-article)
**bold**
*italic*