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

markdown/pagemodel: Added support for Github code block #50

Merged
merged 1 commit into from
Dec 28, 2014

Conversation

oliviermartin
Copy link
Contributor

This change does not support code highlighting but it
presents the code between '```' as a code block.
This syntax is not part of the original Markdown format. But it
allows to use this Eclipse plugin to preview Github code block.

Examples of Github code block:


function test() {
  console.log("notice the blank line before this function?");
}


var s = "JavaScript syntax highlighting";
alert(s);

This change does not support code highlighting but it
presents the code between '```' as a code block.
This syntax is not part of the original Markdown format. But it
allows to use this Eclipse plugin to preview Github code block.

Examples of Github code block:

-----
```
function test() {
  console.log("notice the blank line before this function?");
}
```
-----

-----
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
-----
winterstein added a commit that referenced this pull request Dec 28, 2014
markdown/pagemodel: Added support for Github code block
Thanks Olivier!
We can probably make GitHub-mode the default.
@winterstein winterstein merged commit 50e4cd4 into winterstein:master Dec 28, 2014
@paulvi paulvi mentioned this pull request Dec 30, 2014
@paulvi paulvi added this to the 1.2 milestone Dec 31, 2014
@paulvi
Copy link
Collaborator

paulvi commented Dec 31, 2014

ref #52

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.

None yet

3 participants