This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Text.RegularExpressions; | |
| public partial class MarkdownParser | |
| { | |
| [GeneratedRegex(@"\[(?<masked>[^\]]+)\]\((?<actual>[^)]+)\)")] | |
| private static partial Regex MarkdownLinkRegex(); | |
| public void ParseLinks(string input) | |
| { | |
| foreach (Match match in MarkdownLinkRegex().Matches(input)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name domain.com; | |
| autoindex off; | |
| index index.php index.html; | |
| root /srv/www/domain.com/public; |