Permalink
Browse files

Fix html markdown formatting in readme.md

  • Loading branch information...
1 parent 711ec77 commit 00720c08d7eb861c428a1ffc186a9abb1e01c84d @faisalman committed Mar 4, 2012
Showing with 12 additions and 13 deletions.
  1. +12 −13 readme.md
View
@@ -15,19 +15,18 @@ Get detailed type and version of web browser, layout engine, and operating syste
```html
<script type="text/javascript" src="ua-parser.js"></script>
<script type="text/javascript">
-```
-```js
-var parser = new uaparser(); // by default it takes ua string from current window.navigator
-var browser = parser.getBrowser();
-console.log(browser); // will print object contains current browser info
-
-// testing custom user-agent string
-parser.ua = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 Chrome/15.0.874.106 Safari/535.2";
-browser = parser.getBrowser();
-console.log(browser.name); // will print "Chromium"
-console.log(parser.getOS()); // will print object {name: "Ubuntu", version: "11.10"}
-```
-```html
+
+ var parser = new uaparser(); // by default it takes ua string from current window.navigator
+
+ var browser = parser.getBrowser();
+ console.log(browser); // will print object contains current browser info
+
+ // testing custom user-agent string
+ parser.ua = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 Chrome/15.0.874.106 Safari/535.2";
+ browser = parser.getBrowser();
+ console.log(browser.name); // "Chromium"
+ console.log(parser.getOS()); // {name: "Ubuntu", version: "11.10"}
+
</script>
```

0 comments on commit 00720c0

Please sign in to comment.