From 0137e3185bcbf6cee18c9bccae059d0e90873784 Mon Sep 17 00:00:00 2001 From: Sebastian Gutsche Date: Wed, 20 Feb 2019 11:39:42 +0100 Subject: [PATCH] =?UTF-8?q?Changed=20{}=20to=20=C2=A7=20in=20Markdown=20fo?= =?UTF-8?q?r=20function=20arguments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/Comments.xml | 4 ++-- gap/Markdown.gi | 2 +- tst/worksheets/general.sheet/worksheet.g | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/Comments.xml b/doc/Comments.xml index 8cb7b36a..37839ecf 100644 --- a/doc/Comments.xml +++ b/doc/Comments.xml @@ -742,11 +742,11 @@ can be important. Function arguments - One can mark function parameters by using curly braces ({}) at the + One can mark function parameters by using paragraphs (§) at the beginning and the end of the text which should be marked as a parameter. Example: This produces the following output:
diff --git a/gap/Markdown.gi b/gap/Markdown.gi index 1dd8a0c3..d31f522f 100644 --- a/gap/Markdown.gi +++ b/gap/Markdown.gi @@ -146,7 +146,7 @@ InstallGlobalFunction( CONVERT_LIST_OF_STRINGS_IN_MARKDOWN_TO_GAPDOC_XML, [ [ "`", "`" ], "Code" ], [ [ "**", "**" ], "Emph" ], [ [ "__", "__" ], "Emph" ], - [ [ "{", "}" ], "A"] ]; + [ [ "§", "§" ], "A"] ]; ## special handling for \$ for i in [ 1 .. Length( string_list ) ] do string_list[ i ] := ReplacedString( string_list[ i ], "\\$", "$" ); diff --git a/tst/worksheets/general.sheet/worksheet.g b/tst/worksheets/general.sheet/worksheet.g index e47fda68..4a9b2285 100644 --- a/tst/worksheets/general.sheet/worksheet.g +++ b/tst/worksheets/general.sheet/worksheet.g @@ -31,7 +31,7 @@ Print( "(Even though we never use it that way.\n" ); #! * This is __emphasized__ text in a list item. #! * This is also **emphasized** text in a list item. #! * This is `inline code` in a list item. -#! * {A} is an argument. +#! * §A§ is an argument. #! #! All of this can **also** be __used__ outside of a `list`.