Fossil SCM
show new allowed tags(checkin [5c59d7e9c6]) in wiki help page
Commit
c492eab395efe0e42edaa0dfa3ce7287e14be513
Parent
2cc6fd910744ec9…
2 files changed
+2
-47
+8
+2
-47
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -771,57 +771,12 @@ | ||
| 771 | 771 | @ <p>You can also link to internal anchor names using [#anchor-name], providing |
| 772 | 772 | @ you have added the necessary "<a name="anchor-name"></a>" |
| 773 | 773 | @ tag to your wiki page.</p></li> |
| 774 | 774 | @ <li> <p><span class="wikiruleHead">HTML</span>. |
| 775 | 775 | @ The following standard HTML elements may be used: |
| 776 | - @ <a> | |
| 777 | - @ <address> | |
| 778 | - @ <b> | |
| 779 | - @ <big> | |
| 780 | - @ <blockquote> | |
| 781 | - @ <br> | |
| 782 | - @ <center> | |
| 783 | - @ <cite> | |
| 784 | - @ <code> | |
| 785 | - @ <dd> | |
| 786 | - @ <dfn> | |
| 787 | - @ <div> | |
| 788 | - @ <dl> | |
| 789 | - @ <dt> | |
| 790 | - @ <em> | |
| 791 | - @ <font> | |
| 792 | - @ <h1> | |
| 793 | - @ <h2> | |
| 794 | - @ <h3> | |
| 795 | - @ <h4> | |
| 796 | - @ <h5> | |
| 797 | - @ <h6> | |
| 798 | - @ <hr> | |
| 799 | - @ <img> | |
| 800 | - @ <i> | |
| 801 | - @ <kbd> | |
| 802 | - @ <li> | |
| 803 | - @ <nobr> | |
| 804 | - @ <ol> | |
| 805 | - @ <p> | |
| 806 | - @ <pre> | |
| 807 | - @ <s> | |
| 808 | - @ <samp> | |
| 809 | - @ <small> | |
| 810 | - @ <strike> | |
| 811 | - @ <strong> | |
| 812 | - @ <sub> | |
| 813 | - @ <sup> | |
| 814 | - @ <table> | |
| 815 | - @ <td> | |
| 816 | - @ <th> | |
| 817 | - @ <tr> | |
| 818 | - @ <tt> | |
| 819 | - @ <u> | |
| 820 | - @ <ul> | |
| 821 | - @ <var>. | |
| 822 | - @ In addition, there are two non-standard elements available: | |
| 776 | + show_allowed_wiki_markup(); | |
| 777 | + @ . There are two non-standard elements available: | |
| 823 | 778 | @ <verbatim> and <nowiki>. |
| 824 | 779 | @ No other elements are allowed. All attributes are checked and |
| 825 | 780 | @ only a few benign attributes are allowed on each element. |
| 826 | 781 | @ In particular, any attributes that specify javascript or CSS |
| 827 | 782 | @ are elided.</p></li> |
| 828 | 783 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -771,57 +771,12 @@ | |
| 771 | @ <p>You can also link to internal anchor names using [#anchor-name], providing |
| 772 | @ you have added the necessary "<a name="anchor-name"></a>" |
| 773 | @ tag to your wiki page.</p></li> |
| 774 | @ <li> <p><span class="wikiruleHead">HTML</span>. |
| 775 | @ The following standard HTML elements may be used: |
| 776 | @ <a> |
| 777 | @ <address> |
| 778 | @ <b> |
| 779 | @ <big> |
| 780 | @ <blockquote> |
| 781 | @ <br> |
| 782 | @ <center> |
| 783 | @ <cite> |
| 784 | @ <code> |
| 785 | @ <dd> |
| 786 | @ <dfn> |
| 787 | @ <div> |
| 788 | @ <dl> |
| 789 | @ <dt> |
| 790 | @ <em> |
| 791 | @ <font> |
| 792 | @ <h1> |
| 793 | @ <h2> |
| 794 | @ <h3> |
| 795 | @ <h4> |
| 796 | @ <h5> |
| 797 | @ <h6> |
| 798 | @ <hr> |
| 799 | @ <img> |
| 800 | @ <i> |
| 801 | @ <kbd> |
| 802 | @ <li> |
| 803 | @ <nobr> |
| 804 | @ <ol> |
| 805 | @ <p> |
| 806 | @ <pre> |
| 807 | @ <s> |
| 808 | @ <samp> |
| 809 | @ <small> |
| 810 | @ <strike> |
| 811 | @ <strong> |
| 812 | @ <sub> |
| 813 | @ <sup> |
| 814 | @ <table> |
| 815 | @ <td> |
| 816 | @ <th> |
| 817 | @ <tr> |
| 818 | @ <tt> |
| 819 | @ <u> |
| 820 | @ <ul> |
| 821 | @ <var>. |
| 822 | @ In addition, there are two non-standard elements available: |
| 823 | @ <verbatim> and <nowiki>. |
| 824 | @ No other elements are allowed. All attributes are checked and |
| 825 | @ only a few benign attributes are allowed on each element. |
| 826 | @ In particular, any attributes that specify javascript or CSS |
| 827 | @ are elided.</p></li> |
| 828 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -771,57 +771,12 @@ | |
| 771 | @ <p>You can also link to internal anchor names using [#anchor-name], providing |
| 772 | @ you have added the necessary "<a name="anchor-name"></a>" |
| 773 | @ tag to your wiki page.</p></li> |
| 774 | @ <li> <p><span class="wikiruleHead">HTML</span>. |
| 775 | @ The following standard HTML elements may be used: |
| 776 | show_allowed_wiki_markup(); |
| 777 | @ . There are two non-standard elements available: |
| 778 | @ <verbatim> and <nowiki>. |
| 779 | @ No other elements are allowed. All attributes are checked and |
| 780 | @ only a few benign attributes are allowed on each element. |
| 781 | @ In particular, any attributes that specify javascript or CSS |
| 782 | @ are elided.</p></li> |
| 783 |
+8
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -309,10 +309,18 @@ | ||
| 309 | 309 | { "ul", MARKUP_UL, MUTYPE_LIST, |
| 310 | 310 | AMSK_TYPE|AMSK_COMPACT }, |
| 311 | 311 | { "var", MARKUP_VAR, MUTYPE_FONT, 0 }, |
| 312 | 312 | { "verbatim", MARKUP_VERBATIM, MUTYPE_SPECIAL, AMSK_ID|AMSK_TYPE }, |
| 313 | 313 | }; |
| 314 | + | |
| 315 | +void show_allowed_wiki_markup( void ){ | |
| 316 | + int i; /* loop over allowedAttr */ | |
| 317 | + | |
| 318 | + for( i=1 ; i<=sizeof(aMarkup)/sizeof(aMarkup[0]) - 1 ; i++ ){ | |
| 319 | + @ <%s(aMarkup[i].zName)> | |
| 320 | + } | |
| 321 | +} | |
| 314 | 322 | |
| 315 | 323 | /* |
| 316 | 324 | ** Use binary search to locate a tag in the aMarkup[] table. |
| 317 | 325 | */ |
| 318 | 326 | static int findTag(const char *z){ |
| 319 | 327 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -309,10 +309,18 @@ | |
| 309 | { "ul", MARKUP_UL, MUTYPE_LIST, |
| 310 | AMSK_TYPE|AMSK_COMPACT }, |
| 311 | { "var", MARKUP_VAR, MUTYPE_FONT, 0 }, |
| 312 | { "verbatim", MARKUP_VERBATIM, MUTYPE_SPECIAL, AMSK_ID|AMSK_TYPE }, |
| 313 | }; |
| 314 | |
| 315 | /* |
| 316 | ** Use binary search to locate a tag in the aMarkup[] table. |
| 317 | */ |
| 318 | static int findTag(const char *z){ |
| 319 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -309,10 +309,18 @@ | |
| 309 | { "ul", MARKUP_UL, MUTYPE_LIST, |
| 310 | AMSK_TYPE|AMSK_COMPACT }, |
| 311 | { "var", MARKUP_VAR, MUTYPE_FONT, 0 }, |
| 312 | { "verbatim", MARKUP_VERBATIM, MUTYPE_SPECIAL, AMSK_ID|AMSK_TYPE }, |
| 313 | }; |
| 314 | |
| 315 | void show_allowed_wiki_markup( void ){ |
| 316 | int i; /* loop over allowedAttr */ |
| 317 | |
| 318 | for( i=1 ; i<=sizeof(aMarkup)/sizeof(aMarkup[0]) - 1 ; i++ ){ |
| 319 | @ <%s(aMarkup[i].zName)> |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | /* |
| 324 | ** Use binary search to locate a tag in the aMarkup[] table. |
| 325 | */ |
| 326 | static int findTag(const char *z){ |
| 327 |