mirror of
				https://github.com/quitesimpleorg/qsmaddy.git
				synced 2025-10-31 09:19:29 +01:00 
			
		
		
		
	emphasizedparser: Move from *this* to _this_
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
		| @@ -30,7 +30,7 @@ public: | |||||||
|   /** |   /** | ||||||
|    * Parse |    * Parse | ||||||
|    * |    * | ||||||
|    * From Markdown: `text *text*` |    * From Markdown: `text _text_` | ||||||
|    * |    * | ||||||
|    * To HTML: `text <em>text</em>` |    * To HTML: `text <em>text</em>` | ||||||
|    * |    * | ||||||
| @@ -41,7 +41,7 @@ public: | |||||||
|   void |   void | ||||||
|   Parse(std::string& line) override |   Parse(std::string& line) override | ||||||
|   { |   { | ||||||
|     static std::regex re("(?!.*`.*|.*<code>.*)\\*(?!.*`.*|.*<\\/code>.*)([^\\*]*)\\*(?!.*`.*|.*<\\/code>.*)"); |     static std::regex re("(?!.*`.*|.*<code>.*)\\_(?!.*`.*|.*<\\/code>.*)([^\\_]*)\\_(?!.*`.*|.*<\\/code>.*)"); | ||||||
|     static std::string replacement = "<em>$1</em>"; |     static std::string replacement = "<em>$1</em>"; | ||||||
|  |  | ||||||
|     line = std::regex_replace(line, re, replacement); |     line = std::regex_replace(line, re, replacement); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Patrick José Pereira
					Patrick José Pereira