Skip to content

Commit b27c34c

Browse files
committed
Update README variable syntax to prevent issues with Markdown syntax
1 parent e50745d commit b27c34c

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

src/Command/Markdown/Builder.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ private function parse(string $contents): string
4242
{
4343
return str_ireplace(
4444
[
45-
'[TITLE]',
46-
'[HEADING]',
47-
'[DESCRIPTION]',
48-
'[AUTHOR]',
49-
'[EMAIL]',
50-
'[LICENSE]',
45+
':TITLE:',
46+
':HEADING:',
47+
':DESCRIPTION:',
48+
':AUTHOR:',
49+
':EMAIL:',
50+
':LICENSE_NAME:',
51+
':LICENSE_LINK:'
5152
],
5253
[
5354
$this->title,
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# [TITLE]
1+
# :TITLE:
22

3-
## [HEADING]
3+
## :HEADING:
44

5-
[DESCRIPTION]
5+
:DESCRIPTION:
66

77
## About
88

9-
[AUTHOR], [EMAIL]
9+
:AUTHOR:, :EMAIL:
1010

1111

1212
## License
1313

14-
[LICENSE]
14+
[:LICENSE_NAME:](:LICENSE_LINK:)

0 commit comments

Comments
 (0)