Skip to content

Commit 5e97219

Browse files
committed
update
1 parent 206571b commit 5e97219

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

build-resources-with-pandoc.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ pandoc ./SQLコーディング規約(PostgreSQL).md --toc --reference-doc=${
5858
# AWSインフラリソース
5959
cd ${ROOT_DIR}/documents/forAWSResource
6060

61-
pandoc ./AWSインフラリソース命名規約.md -s --self-contained --number-sections --toc -t html5 -c ${CSS_PATH} -o ${RESOURCES_DIR}/AWSインフラリソース命名規約.html
62-
pandoc ./AWSインフラリソース命名規約.md --toc --reference-doc=${STYLE_DOCX_PATH} -s -o ${RESOURCES_DIR}/AWSインフラリソース命名規約.docx
61+
pandoc --from=gfm+fenced_divs ./AWSインフラリソース命名規約.md -s --self-contained --number-sections --toc -t html5 -c ${CSS_PATH} -o ${RESOURCES_DIR}/AWSインフラリソース命名規約.html
62+
pandoc --from=gfm+fenced_divs ./AWSインフラリソース命名規約.md --toc --reference-doc=${STYLE_DOCX_PATH} -s -o ${RESOURCES_DIR}/AWSインフラリソース命名規約.docx
6363

6464
# OpenAPISpecification
6565
cd ${ROOT_DIR}/documents/forOpenAPISpecification
6666

67-
pandoc ./OpenAPI_Specification_3.0.3.md -s --self-contained --number-sections --toc -t html5 -c ${CSS_PATH} --filter mermaid-filter -o ${RESOURCES_DIR}/OpenAPI_Specification_3.0.3.html
68-
pandoc ./OpenAPI_Specification_3.0.3.md --toc --reference-doc=${STYLE_DOCX_PATH} -s --filter mermaid-filter -o ${RESOURCES_DIR}/OpenAPI_Specification_3.0.3.docx
67+
pandoc --from=gfm+fenced_divs ./OpenAPI_Specification_3.0.3.md -s --self-contained --number-sections --toc -t html5 -c ${CSS_PATH} --filter mermaid-filter -o ${RESOURCES_DIR}/OpenAPI_Specification_3.0.3.html
68+
pandoc --from=gfm+fenced_divs ./OpenAPI_Specification_3.0.3.md --toc --reference-doc=${STYLE_DOCX_PATH} -s --filter mermaid-filter -o ${RESOURCES_DIR}/OpenAPI_Specification_3.0.3.docx

eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,15 @@ export default defineConfig([
4343
markdownPreferences.configs.standard,
4444
markdownLinks.configs.recommended,
4545
],
46+
language: "markdown-preferences/extended-syntax",
4647
rules: {
4748
"markdown/no-multiple-h1": "off",
49+
// Pandoc で変換したときに`:::`がそのまま出力されてしまうので、ちょっとでも不自然に見えないようにpaddingを入れる。
50+
// (入れない場合 `:::`の後に文章が続いてしまうので流石に違和感がある。)
51+
"markdown-preferences/padded-custom-containers": [
52+
"error",
53+
{ padding: "always" },
54+
],
4855
"markdown-links/no-dead-urls": [
4956
"error",
5057
{

0 commit comments

Comments
 (0)