Skip to content

Commit

Permalink
Spelling and tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkende committed Apr 10, 2024
1 parent 982fd07 commit 11abe4e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .aspelldict
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
personal_ws-1.1 en 173
personal_ws-1.1 en 176
BlockTree
CDATA
CommonMark
Expand Down Expand Up @@ -36,6 +36,7 @@ RequireArgUnpacking
RequireConstantVersion
TODO
Util
YAML
accessor
accessors
apos
Expand Down Expand Up @@ -71,6 +72,7 @@ enum
eol
eq
escapable
eval
fc
ffi
ffl
Expand Down Expand Up @@ -171,4 +173,5 @@ wwww
xfffd
xmp
xmpp
yaml
zA
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Revision history for pmarkdown and the Markdown::Perl module.

- Disable hard line breaks using two spaces in our default syntax because they
are invisible in the source file.
- Support a YAML table at the start of a document to provide metadata.
- Bugfixes:
- Disable some part of the Makefile of the project that can’t be parsed under
Solaris.
Expand Down
6 changes: 3 additions & 3 deletions lib/Markdown/Perl/BlockParser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ sub _parse_yaml_metadata {
my ($this) = @_;

# At this point, pos(md) is guaranteed to be 0.
if ($this->{md} =~ m/^---\n((?:.+\n)+?)(:?---|\.\.\.)\n/gc) {
my $yaml = eval { YAML::Tiny->read_string($1) };
if ($@) {
if ($this->{md} =~ m/ ^ ---\n (?<YAML> (?: .+\n )+? ) (?: --- | \.\.\. ) \n /gxc) { ## no critic (ProhibitUnusedCapture)
my $metadata = eval { YAML::Tiny->read_string($+{YAML}) };
if ($EVAL_ERROR) {
pos($this->{md}) = 0;
return;
}
Expand Down
1 change: 0 additions & 1 deletion lib/Markdown/Perl/Inlines.pm
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,6 @@ sub create_extended_email_autolinks {
# these are not tested by the spec present in the current repo (although they
# are documented online).
## no critic (ProhibitComplexRegexes)
# use re 'debug';
while (
$n->{content} =~ m/
(?<prefix> ^ | [ \t\n*_~\(] ) # The link must start after a whitespace or some specific delimiters.
Expand Down
3 changes: 1 addition & 2 deletions lib/Markdown/Perl/Options.pm
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ _make_option(
_enum(qw(none yaml)),
cmark => 'none',
github => 'none',
markdown => 'none',
);
markdown => 'none',);

=head3 B<use_fenced_code_blocks> I<(boolean, default: true)>
Expand Down

0 comments on commit 11abe4e

Please sign in to comment.