Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created May 4, 2012 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttscoff/2594733 to your computer and use it in GitHub Desktop.
Save ttscoff/2594733 to your computer and use it in GitHub Desktop.
Persistent Marked styles in HTML comments

Testing styles in comments

Marked will find metadata such as "Marked Style:" anywhere in the document as long as it's the first thing on a line. This means you can surround the line with HTML comments and still have persistent styles without the metadata showing up in other systems that don't process it.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment