Skip to content

Commit 7142a27

Browse files
committed
fix: MD031/blanks-around-fences
Fenced code blocks should be surrounded by blank lines
1 parent 50161f2 commit 7142a27

26 files changed

Lines changed: 58 additions & 0 deletions

docs/atl/changing-the-drawing-code-atl-tutorial-part-4.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,15 @@ Rebuild the control. Make sure the PolyCtl.htm file is closed if it is still ope
104104
> [!NOTE]
105105
> For errors involving `ATL::CW2AEX`, in Script.Cpp, replace line `TRACE( "XActiveScriptSite::GetItemInfo( %s )\n", pszNameT );` with `TRACE( "XActiveScriptSite::GetItemInfo( %s )\n", pszNameT.m_psz );`, and line `TRACE( "Source Text: %s\n", COLE2CT( bstrSourceLineText ) );` with `TRACE( "Source Text: %s\n", bstrSourceLineText );`.<br/>
106106
> For errors involving `HMONITOR`, open StdAfx.h in the `TCProps` project and replace:
107+
>
107108
> ```
108109
> #ifndef WINVER
109110
> #define WINVER 0x0400
110111
> #endif
111112
> ```
113+
>
112114
> with
115+
>
113116
> ```
114117
> #ifndef WINVER
115118
> #define WINVER 0x0500

docs/atl/creating-the-project-atl-tutorial-part-1.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,22 @@ This tutorial walks you step-by-step through a non-attributed ATL project that c
1111
> [!NOTE]
1212
> This tutorial creates the same source code as the Polygon sample. If you want to avoid entering the source code manually, you can download it from the [Polygon sample abstract](https://github.com/Microsoft/VCSamples/tree/master/VC2008Samples/ATL/Controls/Polygon). You can then refer to the Polygon source code as you work through the tutorial, or use it to check for errors in your own project.
1313
> To compile, open *pch.h* (*stdafx.h* in Visual Studio 2017 and earlier) and replace:
14+
>
1415
> ```
1516
> #ifndef WINVER
1617
> #define WINVER 0x0400
1718
> #endif
1819
> ```
20+
>
1921
> with
22+
>
2023
> ```
2124
> #ifndef WINVER
2225
> #define WINVER 0x0500
2326
> #define _WIN32_WINNT 0x0500
2427
> #endif
2528
> ```
29+
>
2630
> The compiler will still complain about `regsvr32` not exiting correctly, but you should still have the control's DLL built and available for use.
2731
2832
### To create the initial ATL project using the ATL Project Wizard

docs/atl/reference/worker-archetype.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ A pointer to the [OVERLAPPED](/windows/win32/api/minwinbase/ns-minwinbase-overla
7272
## <a name="initialize"></a> WorkerArchetype::Initialize
7373

7474
Called to initialize the worker object before any requests are passed to `WorkerArchetype::Execute`.
75+
7576
```
7677
BOOL Initialize(void* pvParam) throw();
7778
```

docs/build/cmake-predefined-configuration-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ These options allow you to run commands on the remote system before and after bu
345345
]
346346
}
347347
```
348+
348349
::: moniker-end
349350

350351
::: moniker range="vs-2019"

docs/build/projects-and-build-systems-cpp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ You can build simple programs by invoking the MSVC compiler (cl.exe) directly fr
2929
```cmd
3030
cl /EHsc hello.cpp
3131
```
32+
3233
Note that here the compiler (cl.exe) automatically invokes the C++ preprocessor and the linker to produce the final output file. For more information, see [Building on the command line](building-on-the-command-line.md).
3334

3435
## Build systems and projects

docs/cpp/exception-specifications-throw-cpp.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ Prior to C++17 there were two kinds of exception specification. The *noexcept sp
1313
```cpp
1414
void MyFunction(int i) throw();
1515
```
16+
1617
tells the compiler that the function does not throw any exceptions. However, in **/std:c++14** mode this could lead to undefined behavior if the function does throw an exception. Therefore we recommend using the [noexcept](../cpp/noexcept-cpp.md) operator instead of the one above:
1718
1819
```cpp
1920
void MyFunction(int i) noexcept;
2021
```
22+
2123
The following table summarizes the Microsoft C++ implementation of exception specifications:
2224

2325
|Exception specification|Meaning|

docs/cppcx/wrl/hstring-class.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ Retrieves a pointer to the underlying string data.
152152
```cpp
153153
const wchar_t* GetRawBuffer(unsigned int* length) const;
154154
```
155+
155156
### Parameters
156157
157158
*length*

docs/cppcx/wrl/hstringreference-class.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Retrieves a pointer to the underlying string data.
9393
```cpp
9494
const wchar_t* GetRawBuffer(unsigned int* length) const;
9595
```
96+
9697
### Parameters
9798
9899
*length*

docs/data/oledb/simplifying-data-access-with-database-attributes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ For information about the attributes discussed in this topic, see [OLE DB Consum
3535

3636
> [!NOTE]
3737
> The following `include` statements are required to compile the examples below:
38+
3839
> ```cpp
3940
> #include <atlbase.h>
4041
> #include <atlplus.h>

docs/linux/cmake-linux-project.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ The default Linux-Debug configuration in Visual Studio 2019 version 16.1 and lat
197197
]
198198
}
199199
```
200+
200201
::: moniker-end
201202

202203
For more information about these settings, see [CMakeSettings.json reference](../build/cmakesettings-reference.md).

0 commit comments

Comments
 (0)