You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The escript earmark produces only a fragment of a static HTML5 webpage.
It might be useful to allow for the provision of some command line switches like, e.g. --wrap and/or --lang, --title to produce something like the following EEx template, in the context of content and options available in Earmark.Cli:
<!DOCTYPE html>
<html lang="<% options.lang %>">
<head>
<meta charset="utf-8">
<%= if options.title do %>
<title><%= options.title %></title>
<% end %>
</head>
<body>
<%= Earmark.as_html!(content, options) %>
</body>
</html>
The text was updated successfully, but these errors were encountered:
As recently discussed this would add even more options...
An EarmarkWrapper (a very original name indeed) could very simply be a preprocessor that eventually calls Earmark.as_html and integrates its output into the preprocessor's output.
The escript
earmark
produces only a fragment of a static HTML5 webpage.It might be useful to allow for the provision of some command line switches like, e.g.
--wrap
and/or--lang
,--title
to produce something like the following EEx template, in the context ofcontent
andoptions
available inEarmark.Cli
:The text was updated successfully, but these errors were encountered: