Markdown parsing

Report a typo

Markdown is a special syntax used for text formatting. There are several ways to emphasize words using Markdown:

Typeface Example
Italic text *italics*, _same italics_
Bold text **bold**, __same bold__
Strikethrough text ~~crossed out~~
Code snippet `code`

Read an input and parse the text so that it doesn't include special symbols mentioned in the table ("*_~`") at its beginning and its end.
Pay attention to the `code` example, ` is not the same as '!

Do not forget to print the result.

Sample Input 1:

**Important info**

Sample Output 1:

Important info

Sample Input 2:

~~hidden ~ tilde~~

Sample Output 2:

hidden ~ tilde
Write a program in Python 3





___

Create a free account to access the full topic