-
Notifications
You must be signed in to change notification settings - Fork 17
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
Remove code-blocks #98
Conversation
rename gen file
src/bluehawk/actions/snip.test.ts
Outdated
"utf8" | ||
); | ||
expect(fileContents).toStrictEqual(`.. code-block:: javascript | ||
expect(fileContents).toStrictEqual(`.. snippet:: javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it still needs to be code-block for rST's sake
src/bluehawk/actions/snip.ts
Outdated
@@ -83,7 +83,7 @@ export const formatInRst = async ( | |||
? rstLanguageMap.get(document.extension) | |||
: "text"; | |||
|
|||
const rstHeader = ".. code-block::"; | |||
const rstHeader = ".. snippet::"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert this. not valid RST
src/bluehawk/actions/snip.test.ts
Outdated
"utf8" | ||
); | ||
expect(rstFileContents).toStrictEqual(`.. code-block:: javascript | ||
expect(rstFileContents).toStrictEqual(`.. snippet:: javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/bluehawk/actions/snip.test.ts
Outdated
"utf8" | ||
); | ||
expect(fileContents).toStrictEqual(`.. code-block:: javascript | ||
expect(fileContents).toStrictEqual(`.. snippet:: javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert pls
src/bluehawk/actions/snip.test.ts
Outdated
), | ||
"utf8" | ||
); | ||
expect(fileContentsSync).toStrictEqual( | ||
`.. code-block:: swift | ||
`.. snippet:: swift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert pls
src/bluehawk/actions/snip.test.ts
Outdated
), | ||
"utf8" | ||
); | ||
// TODO: Expect this not to emphasize lines, since the :emphasize: tag was | ||
// completely in the other state | ||
/* | ||
expect(fileContentsLocal).toStrictEqual( | ||
`.. code-block:: swift | ||
`.. snippet:: swift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert pls
replace code-blocks with snippets (incl. codeblock and Codeblock, too)