Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14824

Support indenting header level in the include macro

    XMLWordPrintable

Details

    • Easy
    • Code

    Description

      If it's your first Google Code-In task it's highly recommended to start with Become a community member.

      Prerequisites

      The student will need to understand how the XWiki Rendering works. You find some documentation on http://rendering.xwiki.org/.

      Issue

      When the include macro is inside a SectionBlock it should increment any included header so that included level 1 headers become sub headers of that section.

      For retro compatibility reason and to be able to control this behavior a parameter should be introduced with the following possibilities:

      • <a number>: a number indicating the increment to apply (0 being the default behavior of the macro)
      • "current": enable the automatic increment (need to be enable since making it the default would break existing use cases)

      This would allow to write nicer composite documents from documents that all start at heading level 1.

      Expected Outcome

      • The student must commit the changes and create a pull request on https://github.com/xwiki/xwiki-platform
        • The summary of the Pull Request must have a first line matching the JIRA issue following by a colon and then the title of this issue
        • Add a comment in the jira issue mentioning your pull request and provide a link to it

      Links

      Getting help

      If you have any question you should use use the Chat (faster answer but when there is someone around) or the Forum (more people available but slower answer).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: