Skip to content

Commit

Permalink
Merge pull request #7 from BoyWithSilverWings/feature/process-title
Browse files Browse the repository at this point in the history
Process the title for markdown
  • Loading branch information
agneym authored Sep 21, 2019
2 parents 71fb43d + a3b0522 commit 71da9b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file removed demo/this-file.jpg
Binary file not shown.
4 changes: 3 additions & 1 deletion src/generate-html.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import marked from "marked";

import { IRepoProps } from "./types";

function createVariables(name: string, value?: string) {
Expand Down Expand Up @@ -35,7 +37,7 @@ function generateHtml(prop: Partial<IRepoProps>) {
? `<img slot="image" src="${prop.imageUrl}" height="100%" />`
: ``
}
<div slot="title">${prop.title || ""}</div>
<div slot="title">${marked(prop.title || "")}</div>
</og-image-element>
</body>
</html>
Expand Down

0 comments on commit 71da9b7

Please sign in to comment.