You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For "verbatim" type commands the initial indentation counting as done in `detab()` during the markdown phase should be disabled.
For the ease of the implementation (not to repeat logics about these, nested, "verbatim" commands the new internal command `\iskip` has bveen andded together with its counterpart `\endiskip`.
if (Config_getBool(MARKDOWN_SUPPORT)) yyextra->docBlock << "\\iskip";
7081
7090
yyextra->docBlock << yytext;
7082
7091
yyextra->docBlockName="<code>";
7083
7092
yyextra->nestedComment=0;
@@ -7102,36 +7111,40 @@ NONLopt [^\n]*
7102
7111
/* ---- Copy verbatim sections ------ */
7103
7112
7104
7113
<DocCopyBlock>"</"{PRE}">" { // end of a <pre> block
7105
-
yyextra->docBlock << yytext;
7106
7114
if (yyextra->docBlockName=="<pre>")
7107
7115
{
7116
+
if (Config_getBool(MARKDOWN_SUPPORT)) yyextra->docBlock << "\\endiskip";
7108
7117
yyextra->docBlockName="";
7109
7118
BEGIN(DocBlock);
7110
7119
}
7120
+
yyextra->docBlock << yytext;
7111
7121
}
7112
7122
<DocCopyBlock>"</"{CODE}">" { // end of a <code> block
7113
-
yyextra->docBlock << yytext;
7114
7123
if (yyextra->docBlockName=="<code>")
7115
7124
{
7125
+
if (Config_getBool(MARKDOWN_SUPPORT)) yyextra->docBlock << "\\endiskip";
7116
7126
yyextra->docBlockName="";
7117
7127
BEGIN(DocBlock);
7118
7128
}
7129
+
yyextra->docBlock << yytext;
7119
7130
}
7120
7131
<DocCopyBlock>[\\@]("f$"|"f]"|"f}"|"f)") {
7121
-
yyextra->docBlock << yytext;
7122
7132
if (yyextra->docBlockName==&yytext[1])
7123
7133
{
7134
+
if (Config_getBool(MARKDOWN_SUPPORT)) yyextra->docBlock << "\\endiskip";
7124
7135
yyextra->docBlockName="";
7125
7136
BEGIN(DocBlock);
7126
7137
}
7138
+
yyextra->docBlock << yytext;
7127
7139
}
7128
7140
<DocCopyBlock>[\\@]("endverbatim"|"endiliteral"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"enddocbookonly"|"endmanonly"|"endrtfonly"|"enddot"|"endmsc"|"enduml"|"endcode")/[^a-z_A-Z0-9] { // end of verbatim block
7129
-
yyextra->docBlock << yytext;
7130
7141
if (&yytext[4]==yyextra->docBlockName)
7131
7142
{
7143
+
if (Config_getBool(MARKDOWN_SUPPORT)) yyextra->docBlock << "\\endiskip";
7132
7144
yyextra->docBlockName="";
7133
7145
BEGIN(DocBlock);
7134
7146
}
7147
+
yyextra->docBlock << yytext;
7135
7148
}
7136
7149
<DocCopyBlock>^{B}*"*"+/{BN}+ { // start of a comment line
7137
7150
if ((yyextra->docBlockName=="verbatim") || (yyextra->docBlockName=="code") || (yyextra->docBlockName=="iliteral"))
@@ -7191,19 +7204,23 @@ NONLopt [^\n]*
7191
7204
}
7192
7205
<DocCopyBlock>^({B}*"*"+)?{B}{0,3}"~~~"[~]* {
7193
7206
QCString pat = substitute(yytext,"*","");
7194
-
yyextra->docBlock << pat;
7195
7207
if (yyextra->docBlockName == "~~~" && yyextra->fencedSize==pat.stripWhiteSpace().length())
7196
7208
{
7209
+
if (Config_getBool(MARKDOWN_SUPPORT)) yyextra->docBlock << "\\endiskip";
7210
+
yyextra->docBlockName="";
7197
7211
BEGIN(DocBlock);
7198
7212
}
7213
+
yyextra->docBlock << pat;
7199
7214
}
7200
7215
<DocCopyBlock>^({B}*"*"+)?{B}{0,3}"```"[`]* {
7201
7216
QCString pat = substitute(yytext,"*","");
7202
-
yyextra->docBlock << pat;
7203
7217
if (yyextra->docBlockName == "```" && yyextra->fencedSize==pat.stripWhiteSpace().length())
7204
7218
{
7219
+
if (Config_getBool(MARKDOWN_SUPPORT)) yyextra->docBlock << "\\endiskip";
7220
+
yyextra->docBlockName="";
7205
7221
BEGIN(DocBlock);
7206
7222
}
7223
+
yyextra->docBlock << pat;
7207
7224
}
7208
7225
<DocCopyBlock>[^\<@/\*\]~"\$\\\n]+ { // any character that is not special
0 commit comments