This is an automated email from the ASF dual-hosted git repository. wave pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/openoffice-org.git
The following commit(s) were added to refs/heads/main by this push: new 5494dfe lower case markdown metadata 5494dfe is described below commit 5494dfe226eaba006e3e14c31584126735459f13 Author: Dave Fisher <d...@davefisher.tech> AuthorDate: Sat Oct 31 22:37:55 2020 -0700 lower case markdown metadata --- content/style-test.md | 4 ++-- tools/convert2md.awk | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/content/style-test.md b/content/style-test.md index 169948b..c33b945 100644 --- a/content/style-test.md +++ b/content/style-test.md @@ -1,6 +1,6 @@ type=page -Title=This is the title -Notice=https://www.apache.org/licenses/LICENSE-2.0 +title=This is the title +notice=https://www.apache.org/licenses/LICENSE-2.0 ~~~~~~ # This is a level 1 header ## This is a level 2 header diff --git a/tools/convert2md.awk b/tools/convert2md.awk index e2f42d3..f102798 100644 --- a/tools/convert2md.awk +++ b/tools/convert2md.awk @@ -11,12 +11,13 @@ BEGIN { L = index($0,"Notice:"); if ( L == 1 ) { META = 2; - print "Notice=https://www.apache.org/licenses/LICENSE-2.0"; + print "notice=https://www.apache.org/licenses/LICENSE-2.0"; next; } N = sub(/\:[ \t]*/,"=",$0); if ( N > 0 ) { - print $0; + split($0,parts,"="); + print tolower(parts[1])"="parts[2]; next; } META = 0;