Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-detect command lines if 'data-filter' attribute present #1358

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Auto-detect command lines if 'data-filter' attribute present #1358

wants to merge 3 commits into from

Commits on Mar 15, 2018

  1. Auto-detect command lines if 'data-filter' attribute present and not …

    …empty.
    
    This change essentially performs the same operation as the existing code which processes the 'data-output'
    atrribute values, but in an automatic fashion.
    
    When the 'data-filter' attribute is found in the <pre> element with a non-empty value, visit each line of the
    <code> content. If the line starts with the value found in the 'data-prompt' attribute, treat it as a command
    and wrap the text in <span class="command-line-command">. Otherwise, treat the line as command output and strip
    off any data-user, data-host, or data-prompt attributes, just like the code which performs filter based on line
    numbers and ranges.
    brhcriteo committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    ea8816b View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2018

  1. Auto-detect command lines if 'data-filter' attribute present and not …

    …empty.
    
    This change essentially performs the same operation as the existing code which processes the 'data-output'
    atrribute values, but in an automatic fashion.
    
    When the 'data-filter' attribute is found in the <pre> element with a non-empty value, visit each line of the
    <code> content. If the line starts with the value found in the 'data-prompt' attribute, treat it as a command
    and wrap the text in <span class="command-line-command">. Otherwise, treat the line as command output and strip
    off any data-user, data-host, or data-prompt attributes, just like the code which performs filter based on line
    numbers and ranges.
    brhcriteo committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    34a7590 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42fe5ed View commit details
    Browse the repository at this point in the history