{"repo":"campoy/embedmd","free":true,"listed":false,"github":"https://github.com/campoy/embedmd","clone":"git clone https://github.com/campoy/embedmd.git","description":"embedmd: embed code into markdown and keep everything in sync","language":"Go","stars":808,"topics":["markdown","golang","utility"],"license":"Apache-2.0","category":"productivity","readme_excerpt":"embedmd Are you tired of copy pasting your code into your README.md file, just to forget about it later on and have unsynced copies? Or even worse, code that does not even compile? Then embedmd is for you! embedmd embeds files or fractions of files into Markdown files. It does so by searching embedmd commands, which are a subset of the Markdown syntax for comments. This means they are invisible when Markdown is rendered, so they can be kept in the file as pointers to the origin of the embedded text. The command receives a list of Markdown files. If no list is given, the command reads from the standard input. The format of an embedmd command is: The embedded code will be extracted from the file at pathOrURL , which can either be a relative path to a file in the local file system (using always forward slashes as directory separator) or a URL starting with http:// or https:// . If the pathOrURL is a URL the tool will fetch the content in that URL. The embedded content starts at the first line that matches /start regexp/ and finishes at the first line matching /end regexp/ . Omitting the the second regular expression will embed only the piece of text that matches /regexp/ : To embed the whole line matching a regular expression you can use: To embed from a point to the end you should use: To embed a whole file, omit both regular expressions: You can omit the language in any of the previous commands, and the extension of the file will be used for the snippet syntax highlighting. Th","default_branch":null,"files":null,"tree":[],"storefront":"/r/campoy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/campoy/embedmd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}