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

Format Section headers #48

Merged
merged 6 commits into from
Aug 22, 2018
Merged

Format Section headers #48

merged 6 commits into from
Aug 22, 2018

Conversation

Kagre
Copy link
Contributor

@Kagre Kagre commented Aug 21, 2018

Change:

  • **Syntax** to ## Syntax
  • **Remark(s)** to ## Remark(s)
  • **Example(s)** to ## Example(s)

Code: Find/Replace

$re = [regex]'(?s)\s*\n[\s-[\n]]*\*\*(Remark|Example|Syntax)s?\*\*[\s-[\n]]*\n\s*'
$fList=@();ls *.md -recurse | %{if($re.IsMatch((gc $_) -join "`n")){$fList+=$_;}};$fList=($fList|sort -unique)
filter fltr{
   $content=(gc $_) -join "`n"
   $mList = $re.matches($content)
   if($mList.count -gt 0){
      foreach($ToFind in $mList.value){
        $ToSet = ($ToFind -replace '(?s)\s+\*+(?''sName''[^*]+).*',("`n`n"+'## ${sName}'+"`n`n"))
        $content = $content.replace($ToFind,$ToSet)
      }
      $pth = resolve-path $_ -relative
#      $pth = ".\ReviewTmp\$pth";$null = (ni $pth -type file -force)
      sc $pth $content -force
      resolve-path $pth -relative
   }
}
$fList | fltr | ac UpdatedFiles.txt
#gc .\ReviewTmp\access\Concepts\Miscellaneous\required-client-settings.md

@opbld33
Copy link

opbld33 commented Aug 22, 2018

✅ Validation status: passed

File Status Preview URL Details
Language/Concepts/Forms/passwordchar-property.md ✅Succeeded View
Language/Concepts/Getting-Started/deftype-statements.md ✅Succeeded View
Language/Concepts/Getting-Started/type-conversion-functions.md ✅Succeeded View
Language/Reference/User-Interface-Help/accelerator-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/activate-deactivate-events.md ✅Succeeded View
Language/Reference/User-Interface-Help/activecodepane-property-vba-add-in-object-model.md ✅Succeeded View
Language/Reference/User-Interface-Help/activecontrol-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/activevbproject-property-vba-add-in-object-model.md ✅Succeeded View
Language/Reference/User-Interface-Help/activewindow-property-vba-add-in-object-model.md ✅Succeeded View
Language/Reference/User-Interface-Help/add-method-dictionary.md ✅Succeeded View
Language/Reference/User-Interface-Help/add-method-microsoft-forms.md ✅Succeeded View
Language/Reference/User-Interface-Help/add-method-vba-add-in-object-model.md ✅Succeeded View
Language/Reference/User-Interface-Help/add-method-visual-basic-for-applications.md ✅Succeeded View
Language/Reference/User-Interface-Help/addcontrol-event.md ✅Succeeded View
Language/Reference/User-Interface-Help/addcustom-method.md ✅Succeeded View
Language/Reference/User-Interface-Help/addfolders-method.md ✅Succeeded View
Language/Reference/User-Interface-Help/addfromfile-method-vba-add-in-object-model.md ✅Succeeded View
Language/Reference/User-Interface-Help/addfromguid-method-vba-add-in-object-model.md ✅Succeeded View
Language/Reference/User-Interface-Help/addfromstring-method-vba-add-in-object-model.md ✅Succeeded View
Language/Reference/User-Interface-Help/addin-object.md ✅Succeeded View
Language/Reference/User-Interface-Help/addins-collection-vba-add-in-object-model.md ✅Succeeded View
Language/Reference/User-Interface-Help/addins-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/additem-method.md ✅Succeeded View
Language/Reference/User-Interface-Help/addressof-operator.md ✅Succeeded View
Language/Reference/User-Interface-Help/afterupdate-event.md ✅Succeeded View
Language/Reference/User-Interface-Help/alignment-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/and-operator.md ✅Succeeded View
Language/Reference/User-Interface-Help/appactivate-statement.md ✅Succeeded View
Language/Reference/User-Interface-Help/array-function.md ✅Succeeded View
Language/Reference/User-Interface-Help/asc-function.md ✅Succeeded View
Language/Reference/User-Interface-Help/assert-method.md ✅Succeeded View
Language/Reference/User-Interface-Help/atendofline-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/atendofstream-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/atn-function.md ✅Succeeded View
Language/Reference/User-Interface-Help/attributes-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/autosize-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/autotab-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/autowordselect-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/availablespace-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/backcolor-property-microsoft-forms.md ✅Succeeded View
Language/Reference/User-Interface-Help/backstyle-property-microsoft-forms.md ✅Succeeded View
Language/Reference/User-Interface-Help/beep-statement.md ✅Succeeded View
Language/Reference/User-Interface-Help/beforedragover-event.md ✅Succeeded View
Language/Reference/User-Interface-Help/beforedroporpaste-event.md ✅Succeeded View
Language/Reference/User-Interface-Help/beforeupdate-event.md ✅Succeeded View
Language/Reference/User-Interface-Help/bold-italic-size-strikethrough-underline-weight-properties.md ✅Succeeded View
Language/Reference/User-Interface-Help/bordercolor-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/borderstyle-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/boundcolumn-property.md ✅Succeeded View
Language/Reference/User-Interface-Help/boundvalue-property.md ✅Succeeded View

This comment lists only the first 50 files in the pull request.
For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@Linda-Editor Linda-Editor merged commit 54e0a75 into MicrosoftDocs:master Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants