@@ -137,11 +137,13 @@ class BBCodeMap {
137137 m_TagMap[" center" ] = std::make_pair (QRegExp (" \\ [center\\ ](.*)\\ [/center\\ ]" ),
138138 " <div align=\" center\" >\\ 1</div>" );
139139 m_TagMap[" quote" ] = std::make_pair (QRegExp (" \\ [quote\\ ](.*)\\ [/quote\\ ]" ),
140- " <blockquote> \"\\ 1 \" </blockquote>" );
140+ " <figure class= \" quote \" ><blockquote> \\ 1 </blockquote></figure >" );
141141 m_TagMap[" quote=" ] = std::make_pair (QRegExp (" \\ [quote=([^\\ ]]*)\\ ](.*)\\ [/quote\\ ]" ),
142- " <blockquote>\"\\ 2\" <br/><span>--\\ 1</span></blockquote></p>" );
142+ " <figure class=\" quote\" ><blockquote>\\ 2</blockquote></figure>" );
143+ m_TagMap[" spoiler" ] = std::make_pair (QRegExp (" \\ [spoiler\\ ](.*)\\ [/spoiler\\ ]" ),
144+ " <details><summary>Spoiler: <div class=\" bbc_spoiler_show\" >Show</div></summary><div class=\" spoiler_content\" >\\ 1</div></details>" );
143145 m_TagMap[" code" ] = std::make_pair (QRegExp (" \\ [code\\ ](.*)\\ [/code\\ ]" ),
144- " <pre >\\ 1</pre >" );
146+ " <code >\\ 1</code >" );
145147 m_TagMap[" heading" ]= std::make_pair (QRegExp (" \\ [heading\\ ](.*)\\ [/heading\\ ]" ),
146148 " <h2><strong>\\ 1</strong></h2>" );
147149 m_TagMap[" line" ] = std::make_pair (QRegExp (" \\ [line\\ ]" ),
@@ -181,7 +183,7 @@ class BBCodeMap {
181183 m_TagMap[" email=" ] = std::make_pair (QRegExp (" \\ [email=\" ?([^\\ ]]*)\" ?\\ ](.*)\\ [/email\\ ]" ),
182184 " <a href=\" mailto:\\ 1\" >\\ 2</a>" );
183185 m_TagMap[" youtube" ] = std::make_pair (QRegExp (" \\ [youtube\\ ](.*)\\ [/youtube\\ ]" ),
184- " <a href=\" http ://www.youtube.com/v/ \\ 1\" >http ://www.youtube.com/v/ \\ 1</a>" );
186+ " <a href=\" https ://www.youtube.com/watch?v= \\ 1\" >https ://www.youtube.com/watch?v= \\ 1</a>" );
185187
186188
187189 // make all patterns non-greedy and case-insensitive
0 commit comments